Lua functions

IsAlive

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

Historical signature: IsAlive(spawn)

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

Function: IsAlive(spawn)

Description:

Return's true if the Spawn is alive, otherwise false.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: Return's true if the Spawn is alive, otherwise false.

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.

if IsAlive(Spawn1) == true  then

Evidence: server/SpawnScripts/antonica/afociofdecayA.lua:49; binding EQ2Emu_lua_IsAlive.

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