addWeaponCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 26: Line 26:
Format of weapons is '''''[weaponName, count]'''''.
Format of weapons is '''''[weaponName, count]'''''.


For weaponName values see [[Weapons]].
For weaponName values see [[Weapons|cfgWeapons]].





Revision as of 21:06, 23 April 2006


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]