captive: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Page update and comment cleanup) |
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands) |
||
Line 36: | Line 36: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands|CAPTIVE]] | [[Category:Scripting Commands|CAPTIVE]] | ||
Line 43: | Line 42: | ||
[[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: | [[Category:Command Group: Object Information|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category: | [[Category:Arma 3: Scripting Commands]] | ||
[[Category: | [[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] |
Revision as of 16:55, 3 December 2018
Description
- Description:
- Returns the captive state of the given unit (set with setCaptive). A captive unit will not be attacked by its enemies.
- Groups:
- Uncategorised
Syntax
- Syntax:
- captive object
- Parameters:
- object: Object - unit or vehicle
- Return Value:
- Boolean - true if the unit is captive, false if not
Examples
- Example 1:
if (captive _general) then { removeAllWeapons _general; };
Additional Information
- See also:
- captiveNumsetCaptiveside
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
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Object Information
- Scripting Commands ArmA2
- Arma 3: Scripting Commands
- Scripting Commands Take On Helicopters