You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:SetSpawnAnimation"
| Line 1: | Line 1: | ||
{{PageHeaderChild|LUA|SetSpawnAnimation}} | {{PageHeaderChild|LUA|SetSpawnAnimation}} | ||
| + | |||
| + | |||
= LUA Functions: SetSpawnAnimation() = | = LUA Functions: SetSpawnAnimation() = | ||
Sets the spawn to play an animation when it spawns in the zone | Sets the spawn to play an animation when it spawns in the zone | ||
Revision as of 19:37, 7 June 2018
LUA - SetSpawnAnimation
Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker
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