武装突袭 Wiki
Advertisement
Introduced with Operation Flashpoint version 1.00
  Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

点击图片可看到更多讯息

开始使用于

游戏:
Operation Flashpoint
版本:
1.00

描述

描述:
Set amount of ammo resources in cargo space of a rearm vehicle. Ammo resource is used to resupply vehicles that take ammo. Soldiers use individual magazines instead. Amount: 1 is full cargo. The actual quantity to work with is determined by the model's class in CfgVehicles

基本句法

句法:
vehicleName setAmmoCargo ammoCargo
参数:
vehicleName: Object
ammoCargo: Number
返回值:
Nothing

范例

范例1:
_ammoTruck1 setAmmoCargo 0.5;

额外资讯

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

注意事项

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

Notes

Posted on 31 Aug, 2011
PlacidBox
While the amount of total 'ammo' that can be reloaded is defined in the truck/supply point's CfgVehicles entry, the amount each round of ammunition takes from that total is defined in the CfgAmmo 'Cost' entry for that round. Your typical truck has 300000 ammo capacity, and the tunguska's missiles have a Cost of 50000. So the tunguska can reload a total of 6 missiles from the ammo truck before the ammo capacity is depleted and needs to be set with setAmmoCargo. A similar thing applies with a vehicle's cfgVehicle Cost entry for repairing, and the vehicle's fuelCapacity entry when refuelling.

Bottom Section

Posted on July 10, 2015 - 19:27 (UTC)
Waffle SS.
(ArmA 3 1.44) setAmmoCargo will have no effect if the vehicle doesn't support getAmmoCargo.
Advertisement