No categories assigned

LUA:PlayAnimation

Revision as of 12:46, 23 August 2013 by Thefoof (talk | contribs) (Created page with "Allows you play an animation through a spawn. == Syntax == PlayAnimation([Spawn] spawn, [int32] visual_state) == Example == <pre> function hailed(NPC, Spawn) PlayAnimation...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Allows you play an animation through a spawn.

Syntax

PlayAnimation([Spawn] spawn, [int32] visual_state)

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