The "sys_anim_init" Function
Syntax#
| Argument | Type | Description |
|---|---|---|
entity | integer | The data structure of the entity to be animated |
index | integer | The index of the row containing the target entity |
anim | script | The animation script to be performed |
duration | real | Sets the duration of the entire animation, in seconds |
loop | boolean | Enables or disables endlessly looping the animation |
reverse | boolean | Enables or disables reversing the animation |
ease | integer/macro | Sets the animation easing override |
Description#
Initializes a given scripted animation for the input entity which can be performed with sys_anim_perform.
As this script is run automatically by any animation scripts tailored to specific entity types, it is almost never necessary to run sys_anim_init manually.
See Animations for a list of included animation scripts and how to make your own.

X1