武装突袭 Wiki
Advertisement
  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 2
版本:
1.00

描述

描述:
Return the name of the currently selected weapon (on the primary turret for vehicles).

基本句法

句法:
currentWeapon vehicle
参数:
vehicle: Object
返回值:
String

范例

范例1:
_weaponClass = currentWeapon (vehicle player);//Example: "M16A2GL"
范例2:
_weaponClass = currentWeapon player;

额外资讯

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

注意事项

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

Notes

Posted on July 15, 2009 - 04:00 (CEST)
Lou Montana
You have to make a little delay (sleep 0.001; (not less)) to use this command, else you will be returned an empty string.
Posted on July 15, 2009 - 04:00 (CEST)
Lou Montana
It seems it's not working in 1.02 for other unit than player.
Posted on May 4, 2010
Terox
This works for vehicles providing there is a gunner

Bottom Section

Advertisement