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

getWeaponCargo container

Operand types

container: Object

Type of returned value

Description

Returns the weapon types and amounts in a given ammobox or a vehicle capable of storing weapons.

The returned array is in a form of [[weapon type/types],[weapon count/counts]]

For example:
[["M4A1_Aim","M4A1","M4A1_RCO_GL","M16A2","M16A2GL","m16a4","m16a4_acg",
"M16A4_GL","M16A4_ACG_GL","MP5A5","Colt1911","M9"],[4,10,2,4,2,10,5,5,5,4,4,4]]

Used In

Arma2OA

Example

_ammoboxweps = getWeaponCargo ammobox1

Advertisement