Function: GetRaid(spawn [, players_only])
Description:
Collects local entity members from the raid groups associated with the entity's original group. With players_only true, includes connected local Players; otherwise includes all local entity members whose actor borrow admission remains open. Peer-only records without local actors contribute no spawns. An entity in a group with no raid groups receives an empty table.
Collection retains original record/group/actor allocations. It holds the manager's topology lock while selecting raid groups and admitting their actors, preventing an intervening group ID reuse from redirecting collection. Registry and member-list locks release on C++ allocation failure and before Lua result publication. Returned actor loans enter the current Lua invocation, so admitted members remain readable through callbacks/retirement in that invocation. Stored userdata remains weak between calls.
Parameters:
spawn(Spawn) - Entity with player-group membership information.players_only(boolean, optional) - Defaults to false.
Returns: One-based table of Spawn userdata, possibly empty. Invalid input or missing entity/membership information returns no value (nil when assigned).