addMagazineAmmoCargo

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.32
  Arguments of this scripting command don't 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

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.32

Description

Description:
Adds magazines with specified ammo count to the cargo space of a vehicle or a container.

Syntax

Syntax:
cargospace addMagazineAmmoCargo [magazine, quantity, ammocount]
Parameters:
cargospace: Object - vehicle or container or weaponholder
[magazine, quantity, ammocount]: Array
magazine: String - magazine class name
quantity: Number - number of magazines to add
ammocount: Number - ammo count in each magazine
Return Value:
Nothing

Examples

Example 1:
_ammobox addMagazineAmmoCargo ["30Rnd_65x39_caseless_mag", 2, 5];

Additional Information

Multiplayer:
-
See also:
addMagazineCargoaddMagazineGlobaladdMagazineaddMagazine_arrayaddMagazinesaddMagazinePooladdMagazineTurretclearMagazineCargoaddWeaponCargoclearWeaponCargoclearWeaponCargoaddWeaponCargoGlobaladdBackpackCargoGlobaladdItemCargoaddItemCargoGlobal

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section