selectWeapon: 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|SELECTWEAPON]]
[[Category:Scripting Commands|SELECTWEAPON]]
[[Category:Scripting Commands OFP 1.97|SELECTWEAPON]]
[[Category:Scripting Commands OFP 1.96|SELECTWEAPON]]
[[Category:Scripting Commands OFP 1.46|SELECTWEAPON]]
[[Category:Scripting Commands OFP 1.46|SELECTWEAPON]]
[[Category:Scripting Commands ArmA|SELECTWEAPON]]
[[Category:Scripting Commands ArmA|SELECTWEAPON]]

Revision as of 20:26, 1 June 2006


unit selectWeapon weapon


Operand types:

unit: Object

weapon: String

Type of returned value:

Nothing

Compatibility:

Added in version 1.27

Description:

Select given weapon.

For weapon values see cfgWeapons.


Example:

soldier1 selectWeapon "LAWLauncher"