hasWeapon

From Bohemia Interactive Community
Revision as of 12:12, 23 April 2006 by Planck (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"