You are viewing an old version of this page. Return to the latest version.
No categories assigned
LUA:PlayAnimation
- Last edited 5 years ago by I need to Update My Profile
Allows you play an animation through a spawn.
Syntax
PlayAnimation([Spawn] spawn, [int32] visual_state, ([Spawn*] state), ([int8] type]))
Example
function hailed(NPC, Spawn)
PlayAnimation(NPC, 121)
end
When an NPC with this function is hailed, that NPC will use the visual state with the ID of 121 which is the bow animation.