captive

From Bohemia Interactive Community
Revision as of 15:16, 16 April 2006 by Planck (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

back to COMREF

captive unit


Operand types:

unit: Object

Type of returned value:

Boolean

Description:

Check if unit is captive.

If unit is a vehicle, its commander is checked.


Example:

? !(captive player) : goto "run"