weaponsItemsCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Undo revision 91406 by IT07 (talk) Array is not replaced by empty string. String was always there. First array has 6 elements. Second array (after mag removed) only has 5.)
Line 47: Line 47:
<dd class="note">
<dd class="note">
Since revision 129742, this command also returns an attached bipod.  
Since revision 129742, this command also returns an attached bipod.  
</dd>
</dl>
<!-- DISCONTINUE Notes -->
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on August 21, 2015 - 10:42 (UTC)</dd>
<dt class="note">[[User:IT07|IT07]]</dt>
<dd class="note">
(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 <br>
<code>["weapon_className","silencer","laser/light","scope",["magClassName",30],""] // With mag in gun</code>
<code>["weapon_className","silencer","laser/light","scope",""] // Without mag in gun</code>
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 04:13, 22 August 2015

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.