selectWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
[[Category:Scripting Commands ArmA|S]]
[[Category:Scripting Commands ArmA|S]]


back to [[Scripting_Reference#S|COMREF]]


<h2 style="color:#000066">'''''unit'' selectWeapon ''weapon'''''</h2>
<h2 style="color:#000066">'''''unit'' selectWeapon ''weapon'''''</h2>

Revision as of 11:28, 23 April 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 Weapons.


Example:

soldier1 selectWeapon "LAWLauncher"