— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Plays an animation for the specified entity. Entities include tiles, objects, and characters.
play_animation(entity, animation_name)
Argument | Description | Type | Required |
---|---|---|---|
entity | Entity for which to play the animation. | Entity | Yes |
animation_name | Name of the animation to play (as defined in the Voxel Editor). | String | Yes |
If you want to trigger the same animation for multiple entities that have been previously grouped together from the Map Editor, you can use Play Group Animation.
play_animation(entity["chest01"], "open")
Results: Plays the animation named “open” for the entity with an ID of “chest01”.
Use the Play Animation function to …