hasWeapon

From Bohemia Interactive Community
Revision as of 20:09, 15 April 2006 by planck (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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"