captive: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 47: Line 47:
[[Category:Scripting Commands OFP 1.46|CAPTIVE]]
[[Category:Scripting Commands OFP 1.46|CAPTIVE]]
[[Category:Scripting Commands ArmA|CAPTIVE]]
[[Category:Scripting Commands ArmA|CAPTIVE]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]

Revision as of 07:29, 20 February 2007

Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
?!(captive general) : general setCaptive true

Additional Information

See also:
setCaptive

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

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

Bottom Section