Lua functions

SetSpawnAnimation

Registered in this checkout as EQ2Emu_lua_SetSpawnAnimation; implementation found at WorldServer/Lua/LuaFunctions.cpp:11979.

Historical signature: SetSpawnAnimation(spawn, anim_id, leeway)

Parameter and behavior details in the historical explanation are under review against the current implementation.

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://eq2emu.com/developers/references for animation ids.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • anim_id (uint32) - Integer value anim_id.
  • leeway (uint16) - Integer value leeway.

Returns: None.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

SetSpawnAnimation(NPC, 13016, 8000)

Evidence: server/SpawnScripts/Nektropos1/aDecayingCorpse.lua:11; binding EQ2Emu_lua_SetSpawnAnimation.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.