play_animation
Plays a BetterModel animation on the triggering entity or victim.
Categories: entity, visual
Required arguments
| Key(s) | Description | Type |
|---|
animation | The name of the animation to play. | STRING |
Optional arguments
| Key(s) | Description | Type | Default |
|---|
mode | The animation playback mode (e.g. PLAY_ONCE, LOOP). Defaults to PLAY_ONCE. | STRING | PLAY_ONCE |
self | Whether to show the animation only to the triggering player. | BOOLEAN | false |
override | Whether to override any currently playing animation. | BOOLEAN | |
speed | Playback speed multiplier for the animation. | DOUBLE | |
start | The frame index at which to start the animation. | INT | |
end | The frame index at which to end the animation. | INT | |
Example
effects:
- id: play_animation
args:
animation: <value>
mode: <value> # ← Optional
self: true # ← Optional
override: true # ← Optional
speed: 1.0 # ← Optional
start: 1 # ← Optional
end: 1 # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |
| Permanent | false |