captive

From Bohemia Interactive Community
Revision as of 16:21, 16 April 2006 by Planck (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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"


Comments:

Use setCaptive to make a unit captive.