Lua functions

IsSpawnGroupAlive

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

Historical signature: IsSpawnGroupAlive(zone, group_id)

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

Function: IsSpawnGroupAlive(zone, group_id)

Description:

Return's true if there is an alive spawn within the spawn group_id specified in the Zone.

Parameters:

  • zone (Zone) - Zone object representing zone.
  • group_id (uint32) - Integer value group_id.

Returns: Return's true if there is an alive spawn within the spawn group_id specified in the Zone. 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.

IsSpawnGroupAlive(zone, G2) == true then

Evidence: server/SpawnScripts/antonica/BeetleController1.lua:91; binding EQ2Emu_lua_IsSpawnGroupAlive.

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