You are viewing an old version of this page. Return to the latest version.
Version of 19:36, 7 June 2018 by I need to Update My Profile
No categories assigned
LUA:SetSpawnAnimation
- Last edited 7 years ago by I need to Update My Profile
LUA Functions: SetSpawnAnimation()
Sets the spawn to play an animation when it spawns in the zone
Syntax
SetSpawnAnimation(param1, param2, param3)
Parameters
- Required - param1 (Spawn), param2 (int32)
- param1 is the spawn to play the animation
- param2 is the id of the animation to play
- Optional - param3 (int16)
- param3 is the time in milliseconds after the spawn is added to the world that it can play the animation
Usage
function spawn(NPC)
SetSpawnAnimation(NPC, 13016)
end
If assigned to a skeleton or zombie they will play the animation where they crawl out of the ground when they spawn
Notes
param3 will default to 5000 (5 secs) if it is not included