captive: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 25: | Line 25: | ||
'''Example:''' | '''Example:''' | ||
[[if]] ([[not]] '''captive''' [[player]]) [[then]] {[[goto]] "run"} | |||
mNo edit summary |
mNo edit summary |
||
Line 25: | Line 25: | ||
'''Example:''' | '''Example:''' | ||
[[if]] ([[not]] '''captive''' [[player]]) [[then]] {[[goto]] "run"} | |||
Operand types:
unit: Object
Type of returned value:
Description:
Check if unit is captive.
If unit is a vehicle, its commander is checked.
Example:
if (not captive player) then {goto "run"}
Comments:
Use setCaptive to make a unit captive.