captive: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (moved notes)
Line 31: Line 31:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


Use [[setCaptive]] to make a unit captive.
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):


Use [[setCaptive]] to make a unit captive.


[[Category:Scripting Commands|CAPTIVE]]
[[Category:Scripting Commands|CAPTIVE]]

Revision as of 16:04, 2 August 2006

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

Use setCaptive to make a unit captive.

Bottom Section