Lua functions

InSameRaid

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

Historical signature: InSameRaid(…) via current binding

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

Function: InSameRaid(spawn, target [, is_leader_group])

Description: Tests whether the target entity's original group appears in the source entity's original group's raid-group list. With is_leader_group true, requires the target group to be the first entry (the raid leader group). Both membership/group allocations are retained for the native query; a replacement allocation at the same group ID/address cannot become either endpoint.

Parameters:

  • spawn (Spawn) - Source entity.
  • target (Spawn) - Entity to compare.
  • is_leader_group (boolean, optional) - Defaults to false.

Returns: Boolean. Missing/invalid entities, memberships or groups return false.

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.