Lua functions

KillSpawn

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

Historical signature: KillSpawn(dead, killer)

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

Function: KillSpawn(dead, killer)

Description:

Trigger's the dead spawn to be killed. The killer field is optional, but updates that the killer targetted the dead spawn.

Parameters:

  • dead (Spawn) - Spawn object representing dead.
  • killer (Spawn) - Spawn object representing killer.

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.

KillSpawn(NPC, nil, 0)

Evidence: server/SpawnScripts/Longshadow/TeahJNar.lua:33; binding EQ2Emu_lua_KillSpawn.

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