Lua functions

HasGroup

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

Historical signature: HasGroup(spawn)

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

Function: HasGroup(spawn)

Description: For a Player, returns whether its original group contains more than one member record, including remote/offline records. For other spawns, checks spawn-group membership. The native Player query retains original membership and group allocations instead of performing a second lookup by group ID; removal or ID/address reuse cannot redirect that operation to another group.

Parameters:

  • spawn (Spawn) - Spawn whose group state is requested.

Returns: Boolean for valid input. Invalid input returns no value (nil when assigned).

Checked example

No checked example is published for this function yet. No active script call with the current C++ argument count was found.

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