Fandom

武装突袭 Wiki

PlayableUnits

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 分享

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 2
版本:
1.00

描述

描述:
Returns a list of playable units in a multiplayer game (occupied by both AI or players), created on the following sides east, west, resistance/independent and civilian only. Does not contain units of sideLogic. This does not include dead players awaiting for respawn.

基本句法

句法:
playableUnits
返回值:
Array

范例

范例1:
{_x groupChat "I'm a playable unit.";} forEach playableUnits;

范例2:
All playable units in a group:_playableInGroup = units group player arrayIntersect playableUnits;

范例3:
All non-playable units in a group:_playableInGroup = units group player - playableUnits;

额外资讯

多人游戏:
-
也可以看看:

allPlayersallCuratorsallGroupsallDeadswitchableUnitsvehiclesallUnitsUAVallDeadMenisPlayer

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Posted on July 13, 2009 - 11:35
Killswitch
In single-player missions, this command will return an empty array.

Bottom Section

Posted on December 23, 2014 - 23:13 (UTC)
DreadedEntity
To get a list of all player-controlled units: _allPlayers = []; { if (isPlayer _x) then { _allPlayers pushBack _x; }; } forEach playableUnits;

Posted on April 15, 2015 - 23:06 (UTC)
Bull A
Quote:Killswitch In single-player missions, this command will return an empty array.

Use the switchableUnits command instead

Posted on August 16, 2015 - 10:05 (UTC)
FR Starfox64
playableUnits will not return dead players, use allPlayers instead.

更多维基

随机维基