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





Revision as of 16:54, 4 May 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"