captive: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (changed global to local variable to make clear the variable)
m (Minor syntax fix)
Line 12: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| _[[Boolean]] <nowiki>=</nowiki> '''captive''' [[Object|Person|Person]]|= Syntax
| _[[Boolean]] <nowiki>=</nowiki> '''captive''' [[Object#Person|Person]]|= Syntax


|p1= [[Object|#Person|Person]]: [[Object]] |= Parameter 1
|p1= [[Object#Person|Person]]: [[Object]] |= Parameter 1


| [[Boolean]] -   
| [[Boolean]] -   

Revision as of 23:36, 6 October 2008

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:
_Boolean = captive Person
Parameters:
Person: 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