Fandom

武装突袭 Wiki

AssignTeam

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Assigns the unit (in case of a vehicle, its commander) to the given team. Team is an option in group control (unit management) menu that allows to split player group in teams and then give bulk order to separate teams. In order to operate properly, the command requires specific conditions:

  • The command requires player to be fully initialised
  • The unit getting assigned must be either player himself or a unit in player's group
  • Units in player's group as well as player himself can all have different teams assigned
  • The colour of the assigned team for a unit is seen on the group management UI

The possible team values (colours) are:

  • "MAIN" - (white)
  • "RED" - (red)
  • "GREEN" - (green)
  • "BLUE" - (blue)
  • "YELLOW" - (yellow)

基本句法

句法:
unit assignTeam team
参数:
unit: Object

team: String
返回值:
Nothing

范例

范例1:
_soldier2 assignTeam "RED";

范例2:
Say player is the leader and there are other players in his group and you want them to know what team they are assigned to when assignedTeam is executed on their PCs: {

   _x assignTeam "RED";
   if (isPlayer _x) then
   {
       [_x, "RED"] remoteExecCall ["assignTeam", _x];
   };

} forEach units group player;

额外资讯

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

assignedTeamdissolveTeamunassignTeam

注意事项

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

Notes


Bottom Section

更多维基

随机维基