allUsers: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.06 | |version1= 2.06 | ||
|gr1= Multiplayer | |gr1= Multiplayer | ||
|gr2= Object Detection | |gr2= Object Detection | ||
|serverExec= server | |serverExec= server | ||
|descr= Returns a list of [[getPlayerID | player ids]] of all the users on an MP server. | |descr= Returns a list of [[getPlayerID|player ids]] of all the users on an MP server. | ||
|s1= [[allUsers]] | |s1= [[allUsers]] | ||
Line 13: | Line 15: | ||
|r1= [[Array]] of user network ID [[String]]s (see [[getPlayerID]]) | |r1= [[Array]] of user network ID [[String]]s (see [[getPlayerID]]) | ||
|x1= | |x1= <sqf> | ||
if (isServer) then | |||
{ | |||
private _allUserIDs = allUsers; | |||
for "_i" from 1 to count _allUserIds do | |||
{ | |||
diag_log format ["User #%1 id: %2", _i, _allUserIds select _i]; | |||
}; | |||
}; | |||
</sqf> | |||
|seealso= [[getUserInfo]] [[getPlayerID]] [[allPlayers]] [[allCurators]] [[allGroups]] [[allDead]] [[allUnits]] [[switchableUnits]] [[playableUnits]] [[vehicles]] [[allUnitsUAV]] [[allDeadMen]] [[isPlayer]] [[playersNumber]] | |seealso= [[getUserInfo]] [[getPlayerID]] [[allPlayers]] [[allCurators]] [[allGroups]] [[allDead]] [[allUnits]] [[switchableUnits]] [[playableUnits]] [[vehicles]] [[allUnitsUAV]] [[allDeadMen]] [[isPlayer]] [[playersNumber]] | ||
}} | }} |
Revision as of 17:36, 5 May 2022
Description
- Description:
- Returns a list of player ids of all the users on an MP server.
- Groups:
- MultiplayerObject Detection
Syntax
- Syntax:
- allUsers
- Return Value:
- Array of user network ID Strings (see getPlayerID)
Examples
- Example 1:
Additional Information
- See also:
- getUserInfo getPlayerID allPlayers allCurators allGroups allDead allUnits switchableUnits playableUnits vehicles allUnitsUAV allDeadMen isPlayer playersNumber
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note