addWeaponCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 2: Line 2:




== '''''unit'' addWeaponCargo ''weapons''''' ==
<h2 style="color:#000066">'''''unit'' addWeaponCargo ''weapons'''''</h2>





Revision as of 13:39, 15 April 2006

back to COMREF


unit addWeaponCargo weapons


Operand types:

unit: Object

weapons: Array

Type of returned value:

Nothing

Description:

Add weapons to weapon cargo space.

Used for infantry weapons.

Format of weapons is [weaponName, count].

For weaponName values see CfgWeapons.


Example:

rearmTruckOne addWeaponCargo ["M16",10]