... | @@ -7,12 +7,16 @@ Add or remove a model from the targeted entity. |
... | @@ -7,12 +7,16 @@ Add or remove a model from the targeted entity. |
|
Attributes
|
|
Attributes
|
|
----------
|
|
----------
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|
|-----------|---------------|------------------------------------------|---------|
|
|
|
|
| modelid | m, mid, model | The model id of the model | |
|
|
|
|
| remove | r | Is this mechanic used for removing model | false |
|
|
|
|
|
|
|
|
#### When remove = false
|
|
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
| Attribute | Aliases | Description | Default |
|
|
|-----------------|--------------------------|--------------------------------------------------------------------------------------------|---------|
|
|
|-----------------|--------------------------|--------------------------------------------------------------------------------------------|---------|
|
|
| modelid | m, mid, model | The model id of the model | |
|
|
|
|
| hitbox | h | Should the model override the hitbox | true |
|
|
| hitbox | h | Should the model override the hitbox | true |
|
|
| remove | r | Is this mechanic used for removing model | false |
|
|
|
|
| killowner | ko | Remove: Should the base entity be killed | false |
|
|
|
|
| invisible | i, invis | Should the base entity be invisible | true |
|
|
| invisible | i, invis | Should the base entity be invisible | true |
|
|
| damagetint | d, tint | Should the model flash red when damaged | true |
|
|
| damagetint | d, tint | Should the model flash red when damaged | true |
|
|
| nametag | n, name | The tag bone used to display the name | |
|
|
| nametag | n, name | The tag bone used to display the name | |
|
... | @@ -26,9 +30,17 @@ Attributes |
... | @@ -26,9 +30,17 @@ Attributes |
|
| hitboxscale | | Collision hitbox scale of the model<br/>**Caution: Large hitboxes might cause server lag** | scale |
|
|
| hitboxscale | | Collision hitbox scale of the model<br/>**Caution: Large hitboxes might cause server lag** | scale |
|
|
| usestatemachine | usm, state, statemachine | Use the new animation system<br/>**Highly recommended to switch to this system** | false |
|
|
| usestatemachine | usm, state, statemachine | Use the new animation system<br/>**Highly recommended to switch to this system** | false |
|
|
|
|
|
|
|
|
#### When remove = true
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|
|-----------|---------|----------------------------------|---------|
|
|
|
|
| killowner | ko | Should the base entity be killed | false |
|
|
|
|
|
|
Examples
|
|
Examples
|
|
--------
|
|
--------
|
|
**Adding a new model:**
|
|
|
|
|
|
#### Adding a new model:
|
|
|
|
|
|
This will apply a model on entity spawn and load.
|
|
This will apply a model on entity spawn and load.
|
|
|
|
|
|
```yaml
|
|
```yaml
|
... | @@ -38,7 +50,10 @@ Skills: |
... | @@ -38,7 +50,10 @@ Skills: |
|
- model{m=kindletronsr;usm=true} @self ~onLoad
|
|
- model{m=kindletronsr;usm=true} @self ~onLoad
|
|
```
|
|
```
|
|
|
|
|
|
**Remove a model:**
|
|
---
|
|
|
|
|
|
|
|
#### Remove a model:
|
|
|
|
|
|
This will remove the model and also kill the entity.
|
|
This will remove the model and also kill the entity.
|
|
|
|
|
|
```yaml
|
|
```yaml
|
... | | ... | |