No categories assigned

LUA:PlayAnimation

Revision as of 11:11, 7 September 2013 by Thefoof (talk | contribs) (Syntax)

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.


Back to LUA Spawn Functions Index