allPlayers - Bohemia Interactive Community


From Bohemia Interactive Community

Jump to: navigation, search

allPlayers

1.48
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.48

Description

Description:
Returns a list of all human players including dead players. The command also returns all connected headless clients. To filter headless clients out: _justPlayers = allPlayers - entities "HeadlessClient_F"; NOTE: In player hosted game, the complete array of allPlayers may get delayed at the start. Use BIS_fnc_listPlayers if you need it earlier

Syntax

Syntax:
allPlayers
Return Value:
Array

Examples

Example 1:
{ systemChat format [ "Player %1 is %2", name _x, ["dead", "alive"] select alive _x ]; } forEach allPlayers;
Example 2:
_bluNums = west countSide allPlayers;
Example 3:
Find all human players if headless clients are used:_allHCs = entities "HeadlessClient_F"; _allHPs = allPlayers - _allHCs;

Additional Information

Multiplayer:
-
See also:
allCuratorsallGroupsallDeadallUnitsswitchableUnitsplayableUnitsvehiclesallUnitsUAVallDeadMenisPlayer

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Retrieved from "http://community.bistudio.com/wiki?title=allPlayers&oldid=93920"