武装突袭 Wiki
Advertisement
Introduced with Arma 3 version 0.56
  Arguments of this scripting command don't have to be local to the client the command is executed on

点击图片可看到更多讯息

开始使用于

游戏:
Arma 3
版本:
0.56

描述

描述:
Returns the amount of ammo resources in the cargo space of a rearm vehicle.

基本句法

句法:
getAmmoCargo vehicle
参数:
vehicle: Object
返回值:
Number

范例

范例1:
value = getAmmoCargo myVehicleName;

额外资讯

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

注意事项

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

Notes

Bottom Section

Posted on December 22, 2014 - 17:16 (UTC)
AgentRevolution
If the vehicle is not alive, it always returns Nothing, which you should check for using isNil.
If the vehicle is unable to carry that type of cargo, it returns -1.#IND, which you should check for using finite.
Advertisement