hasWeapon

From Bohemia Interactive Community
Revision as of 20:50, 1 June 2006 by Raedor (talk | contribs)
Jump to navigation Jump to search


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"