Sub Model
Description
Forcibly create or delete bones from a model.
This is mainly used for removing interactive bones such as sub-hitboxes or seats.
If you want to hide a renderer bone temporarily, use PartVisibility instead.
Attributes
| Attribute | Aliases | Description | Type | Default |
|---|---|---|---|---|
| modelid | m, mid, model | Targeted model | String | |
| remove | r | Is this mechanic used for removing bones | Boolean | false |
When remove = false
| Attribute | Aliases | Description | Type | Default |
|---|---|---|---|---|
| partid | p, pid, partid, part | The parent of the added bone | String | |
| subpartid | sp, spid, subpart | The added bone. All child bone of this bone will also be added. | String | |
| prefix | pfx | Prefix of the newly added bones. This is used to distinguish duplicate bones. E.g. sp=test;pfx=custom_ will add a bone called custom_test.This new bone name can be targeted by other mechanics. |
String | Empty String |
When remove = true
| Attribute | Aliases | Description | Type | Default |
|---|---|---|---|---|
| subpartid | sp, spid, subpart | The removed bone. You need to specify the full bone name here, including the tag, if present | String |