Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GetNumGroupmates

From RoR Wiki

UI Lua API · Game functions
Version: WAR 1.4.8

Returns how many other players are in the player's group.

count = GetNumGroupmates()

Arguments

None.

Returns

count
number – Number of occupied groupmate slots, from 0 to 5. The player is not counted.

Details

  • The client checks the five groupmate slots (the group without the player) and counts the ones that have a member in them.
  • If there is no player object (for example before entering the world), the function returns nothing.

Errors

None.

Example

From ea_scenariolobbywindow/source/scenariolobbywindow.lua:

local groupdata = GetNumGroupmates()

See also