CONTENT CONTRACT · VERSION 1
play_animation
Show an animation clip on an actor after commit; purely visual.
Signature
{ animation: AnimationId, duration_ticks: PositiveTicks, kind: "play_animation", target: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
animation | AnimationId | Clip compatible with the actor's character. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: animation |
duration_ticks | PositiveTicks | How long the clip shows. Range: 1…2147483647; Unit: tick |
kind | "play_animation" | Discriminant |
target | ActorRef | Actor the effect applies to. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"animation": "core:hill_golem_roar",
"duration_ticks": 50,
"kind": "play_animation",
"target": "b1"
}