Arma 3 Scripting

Command in Vehicle Inventory

setVehicleAmmo

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets how much ammunition (compared to a full state defined by the vehicle type) the vehicle has. Note that the ammo will be added only to local turrets. To check locality of turret use turretLocal.

Syntax

vehicleName setVehicleAmmo value

Parameters:

Returns: Nothing

Examples

Example 1

player setVehicleAmmo 0;

Example 2

_vehicle setVehicleAmmo 1;

See also

setVehicleAmmoDef · ammo · setAmmo · setAmmoCargo · turretLocal