1
0
EQ2Emu/docs/lua_functions/SetSpawnAnimation.md
2025-05-25 21:42:32 -04:00

22 lines
585 B
Markdown

### Function: SetSpawnAnimation(spawn, anim_id, leeway)
**Description:**
Set's the spawn animation of the spawn, leeway adds a delay in milliseconds. See appearance id's at https://wiki.eq2emu.com/ReferenceLists for animation ids.
**Parameters:**
- `spawn` (Spawn) - Spawn object representing `spawn`.
- `anim_id` (uint32) - Integer value `anim_id`.
- `leeway` (uint16) - Integer value `leeway`.
**Returns:** None.
**Example:**
```lua
-- From SpawnScripts/Antonica/anearthcrawler.lua
function spawn(NPC, Spawn)
NPCModule(NPC, Spawn)
SetSpawnAnimation(NPC, 13016)
end
```