Fandom

武装突袭 Wiki

WeaponState

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 2: Operation Arrowhead
版本:
1.60

描述

描述:
Returns the current weapon state as an array of strings in the following format [WeaponName, MuzzleName, ModeName, MagazineName, AmmoCount] (AmmoCount is Number).

基本句法

句法:
weaponState unitName
参数:
unitName: Object
返回值:
Array - ["m16a4","m16a4","Single","30Rnd_556x45_Stanag",29]

替代句法

句法:
weaponState [vehicle, turretPath]
参数:
vehicle: Object

turretPath: Array
返回值:
Array - ["M256","M256","M256","20Rnd_120mmSABOT_M1A2",20]

范例

范例1:
_weaponStatePlayer = weaponState player;

范例2:
_weaponStateVehiclePlayer = weaponState [ vehicle player,[0]];

范例3:
_SecondPositionOfThefirstTurret = weaponState [ vehicle player,[0,0,1]];

额外资讯

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

weaponsloadMagazinemagazinesTurretweaponsTurret

注意事项

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

Notes

Posted on February 17, 2012
kju
The command does not work for a vehicle driver - even if he has weapons.
The command only works for vehicle positions, if there was an unit on the position before. When a position has been occupied once, the command even works when there is no unit currently at the given vehicle position.

Bottom Section

更多维基

随机维基