Fandom

武装突袭 Wiki

CreateUnit array

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

  Effects of this scripting command are broadcasted over the network and happen on every computer in the network

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Creates a unit (person) of the given type (type is a name of a subclass of CfgVehicles) and makes it a member of the given group. If the markers array contains several marker names, the position of a random one is used. Otherwise, the given position is used. The unit is placed inside a circle with this position as its center and placement as its radius. Special properties can be:

  • "NONE"
  • "FORM"
  • "CAN_COLLIDE"
  • "CARGO"

基本句法

句法:
group createUnit [type, position, markers, placement, special]
参数:
group: Group

[type, position, markers, placement, special]: Array

type: String

position: Position, Position2D or Object

markers: Array

placement: Number. Radius

special: String
返回值:
Object

范例

范例1:
_unit = group player createUnit ["SoldierWB", Position player, [], 0, "FORM"];

额外资讯

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

createUnitcreateCentercreateGroupcreateVehiclecreateVehicle array

注意事项

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

Notes

Posted on 21 December 2006
Sbsmac
Although this command takes a group as an argument, you need to use the join command if you want the created units to perform actions such as move. For example: comment "Create a new soldier within 100m of the player and cause them to run towards the player" ; _grp = createGroup west; unit = _grp createUnit ["SoldierWB", position player, [], 100, "FORM"] ; [unit] join _grp ; unit move position player ; However, some commands such as setUnitPos only work if run before the join.

Posted on 11 March 2011
kju
Comment above about 'an additional join required' is no longer true for Operation Arrowhead.

Bottom Section

更多维基

随机维基