Warning: file_put_contents(/ff_6abe3c0131af6a95b964891b3f64a9e935ad574170afaba5.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
getAmmoCargo - OFPEC Scripting Command Reference | OFPEC The Editing Center

getAmmoCargo vehicleName

Operand types

vehicleName: Object

Type of returned value

Description

Returns the ammo amount left (between 0 and 1) in the cargo space of the given re-ammo vehicle.

Used In

Arma3

Example

value = getAmmoCargo myVehicleName;

if (getAmmoCargo _truck > 0) then {
hint "This truck can re-arm you.";
};

Advertisement