Vehicle Inventory
38 scripting commands. Also as Markdown for agents.
- addItemCargoCreates new items and stores them in given container. Works with items, weapons, magazines, equipment and glasses but not backpacks. In the latter…
- addItemCargoGlobalGlobal variant of addItemCargo.
- addMagazineAmmoCargoAdds magazines with specified ammo count to the cargo space of a vehicle or a container.
- addWeaponAdd a weapon to a unit. For a global version of this command see addWeaponGlobal.
- addWeaponGlobalAdd a weapon to a unit. Infantry units can only carry weapons in their respective slots (primary, secondary and handgun), the addWeaponGlobal command…
- addWeaponWithAttachmentsCargoAdds a weapon into the cargo space of a vehicle / box with given attachments / magazines. Ignores available cargo space.
- addWeaponWithAttachmentsCargoGlobalAdds a weapon into the cargo space of a vehicle / box with given attachments / magazines. Ignores available cargo space.
- currentMagazineReturns class name of currently loaded vehicle's / unit's magazine.
- currentMagazineDetailReturns description of vehicle's currently loaded magazine, its ammo count (current/default) and its id.
- everyContainerReturns array of all containers (uniforms, vests, backpacks) stored in given crate or vehicle. Used for accessing containers content stored in ammo…
- getAmmoCargoReturns the amount (1 is full) of ammo resources in the cargo space of a rearm vehicle.
- getFuelCargoReturns the fuel amount (1 is full) in the cargo space of a refueling vehicle.
- getItemCargoReturns all items names and count from ammo box (or any general weapon holder container).
- getMagazineCargoReturns all magazines types and count from the cargo space
- getRepairCargoReturns the amount (1 is full) of repair resources in the cargo space of a repair vehicle.
- getWeaponCargoReturns all weapons types and count from the cargo space
- itemCargoGet array with items from ammo box (or any general weapon holder container).
- magazineCargoGet array with magazines from ammo box (or any general weapon holder container).
- magazinesReturns array of type names of all vehicle's magazines. When applied to a unit, the command behaves differently and will omit magazines already…
- magazinesAmmoReturns all vehicle's magazines and their ammo count (also works on supply boxes). When applied to a unit (soldier), the command behaves differently…
- magazinesAmmoCargoReturns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines.
- magazinesAmmoFullReturns array of arrays of all unit's or vehicle's magazines with extended information about them. The magazines returned are for primary gunner. If…
- magazinesDetailReturns an array of strings with description of all vehicle's magazines, their ammo count (current/default) and their ids for the primary gunner.
- removeWeaponRemove weapon from a unit. The unit must be local to the computer where command is executed. For a global version of this command, see…
- removeWeaponAttachmentCargoRemove attachment linked to a weapon from the vehicle cargo space.
- removeWeaponCargoRemove weapon from the vehicle cargo space.
- removeWeaponGlobalRemove a weapon from a unit. An attempt to remove a weapon, which is not in unit's possession, is simply ignored.
- setAmmoSets custom ammo count in the currently loaded magazine of the specified weapon or muzzle.
- setAmmoCargoSet amount of ammo resources in cargo space of a rearm vehicle. Ammo resource is used to resupply vehicles that take ammo. Soldiers use individual…
- setFuelCargoSets fuel amount in cargo space of refuel vehicles. Note that the carrying capacity of each side's refuel trucks differ.
- setRepairCargoSet amount of repair resources in cargo space of repair vehicle. Amount 1 is full cargo.
- setVehicleAmmoSets 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…
- setVehicleAmmoDefSets how much ammunition (compared to the configuration of magazines defined in the vehicle's class) the vehicle has. Note that the ammo will only be…
- weaponAccessoriesCargoReturns array with all items assigned to the given weapon in given cargo container.
- weaponCargoGet array with weapons from ammo box (or any general weapon holder container).
- weaponsReturns array of names of all unit's weapons.
- weaponsItemsReturns an array with subarrays contains class names and also names of connected items of all the vehicle's weapons.
- weaponsItemsCargoReturns an array with subarrays contains class names and also names of connected items of all the vehicle's cargo weapons in weaponsItems format.