點擊圖片可看到更多訊息
開始使用於
- 遊戲:
- Arma 3
- 版本:
- 1.48
描述
- 描述:
- 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
基本句法
- 句法:
- allPlayers
- 返回值:
- Array
範例
- 範例1:
{ systemChat format [ "Player %1 is %2", name _x, ["dead", "alive"] select alive _x ]; } forEach allPlayers;
- 範例2:
_bluNums = west countSide allPlayers;
- 範例3:
- Find all human players if headless clients are used:
_allHCs = entities "HeadlessClient_F"; _allHPs = allPlayers - _allHCs;
額外資訊
- 多人遊戲:
- -
- 也可以看看:
- allCuratorsallGroupsallDeadallUnitsswitchableUnitsplayableUnitsvehiclesallUnitsUAVallDeadMenisPlayer