addWeaponCargo: Difference between revisions

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

Revision as of 20:41, 1 June 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]