Difference between revisions of "captive"

From Bohemia Interactive Community
Jump to navigation Jump to search
 
Line 22: Line 22:
  
 
? !('''captive''' [[player]]) : [[goto]] "run"
 
? !('''captive''' [[player]]) : [[goto]] "run"
 +
 +
 +
'''Comments:'''
 +
 +
Use [[setCaptive]] to make a unit '''captive'''.

Revision as of 15:21, 16 April 2006

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.