hasWeapon

From Bohemia Interactive Community
Revision as of 19:08, 22 April 2006 by Planck (talk | contribs)
Jump to navigation Jump to search


back to COMREF

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"