captive

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Operation Flashpoint version 1.00
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
Returns if the given unit is captive. "captive" means that enemies will not shoot at the unit.

Syntax

Syntax:
captive object
Parameters:
object: Object
Return Value:
Boolean - true if the unit is captive, false if not

Examples

Example 1:
if (!captive _general) then {_general setCaptive true};

Additional Information

Multiplayer:
-
See also:
captiveNumsetCaptive

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Posted on August 3, 2006 - 14:24
hardrock
Notes from before the conversion: Use setCaptive to make a unit captive.

Bottom Section