weaponsItemsCargo

From Bohemia Interactive Community
Revision as of 00:50, 23 August 2015 by Benargee (talk | contribs) (Undo revision 91411 by Benargee (talk)My mistake.)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns an array with subarrays contains class names and also names of connected items of all the vehicle's cargo weapons like [['arifle_MX_ACO_pointer_F','','acc_pointer_IR','optic_Aco',['30Rnd_65x39_caseless_mag',29],'bipod_01_F_blk']].
Groups:
Uncategorised

Syntax

Syntax:
weaponsItemsCargo vehicle
Parameters:
vehicle: Object
Return Value:
Array

Examples

Example 1:
weaponsItemsCargo vehicle player;
Example 2:
weaponsItemsCargo _weaponholder;

Additional Information

See also:
weaponsItems

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section

Posted on March 16, 2015 - 12:13 (UTC)
Jezuro
Since revision 129742, this command also returns an attached bipod.
Posted on August 21, 2015 - 10:42 (UTC)
IT07
(ArmA 1.50) This command is sort-of bugged: if no magazine is present in the gun, it will not be available at all in the ARRAY. I expect it to be an empty STRING instead. Example
["weapon_className","silencer","laser/light","scope",["magClassName",30],""] // With mag in gun ["weapon_className","silencer","laser/light","scope",""] // Without mag in gun