======Play Animation====== ---- Plays an [[animation]] for the specified [[entity]]. [[entity|Entities]] include [[tile|tiles]], [[object|objects]], and [[character|characters]]. ====Signature:==== 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| You can use [[Play Group Animation]] if you'd like to trigger the same [[animation]] for multiple [[entity|entities]] that have been grouped together from the [[Map Editor]]. ====Example:==== play_animation(entity["chest01"], "open"); //Results:// Triggers the [[animation]] named "open" for the [[entity]] with an ID of "chest01". Use the **Play Animation** function to trigger [[animation|animations]] for doors being opened and closed upon player interaction or for special [[NPC]] emotes (e.g. waving at the player). ---- ====Editor Node:==== {{:play_animation_node.png?nolink|}} ====Visual Demo:==== {{:play_animation_demo.gif?nolink|}} ~~NOTOC~~