hasWeapon: 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|H]]
[[Category:Scripting Commands ArmA|H]]


back to [[Scripting_Reference#H|COMREF]]


<h2 style="color:#000066">'''''unit'' hasWeapon ''weaponName'''''</h2>
<h2 style="color:#000066">'''''unit'' hasWeapon ''weaponName'''''</h2>

Revision as of 12:12, 23 April 2006


unit hasWeapon weaponName


Operand types:

unit: Object

weaponName: String

Type of returned value:

Boolean

Description:

Check if unit has given weapon.


Example:

? (player hasWeapon "M16") : goto "ready"