captive unitName

Operand types

unitName: Object

Type of returned value

Description

Check if unit is captive.
If unit is a vehicle, its commander is checked.

Used In

OFP/ArmA

Example

? !(captive player) : goto "run"
Search OFPEC COMREF