addWeaponCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|A]]
[[Category:Scripting Commands|ADDWEAPONCARGO]]
[[Category:Scripting Commands OFP 1.97|A]]
[[Category:Scripting Commands OFP 1.97|ADDWEAPONCARGO]]
[[Category:Scripting Commands OFP 1.46|A]]
[[Category:Scripting Commands OFP 1.46|ADDWEAPONCARGO]]
[[Category:Scripting Commands ArmA|A]]
[[Category:Scripting Commands ArmA|ADDWEAPONCARGO]]





Revision as of 12:59, 4 May 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]