2025-05-25 21:42:32 -04:00
### Function: SetSpawnAnimation(spawn, anim_id, leeway)
2025-05-04 14:34:15 -04:00
**Description:**
2025-05-25 21:42:32 -04:00
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.
2025-05-04 14:34:15 -04:00
**Parameters:**
2025-05-25 21:42:32 -04:00
- `spawn` (Spawn) - Spawn object representing `spawn` .
- `anim_id` (uint32) - Integer value `anim_id` .
- `leeway` (uint16) - Integer value `leeway` .
2025-05-04 14:34:15 -04:00
**Returns:** None.
**Example:**
```lua
2025-05-25 21:42:32 -04:00
-- From SpawnScripts/Antonica/anearthcrawler.lua
function spawn(NPC, Spawn)
NPCModule(NPC, Spawn)
SetSpawnAnimation(NPC, 13016)
end
2025-05-04 14:34:15 -04:00
```