play_animation

Plays a BetterModel animation on the triggering entity or victim.

Categories: entity, visual

Required arguments

Key(s)DescriptionType
animationThe name of the animation to play.STRING

Optional arguments

Key(s)DescriptionTypeDefault
modeThe animation playback mode (e.g. PLAY_ONCE, LOOP). Defaults to PLAY_ONCE.STRINGPLAY_ONCE
selfWhether to show the animation only to the triggering player.BOOLEANfalse
overrideWhether to override any currently playing animation.BOOLEAN
speedPlayback speed multiplier for the animation.DOUBLE
startThe frame index at which to start the animation.INT
endThe 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

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue
Permanentfalse