setCaptive: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
____________________________________________________________________________________________ | |||
| Mark unit as captive. | |||
If unit is a vehicle, commander is marked. | |||
A captive is neutral to everyone. | |||
Note: This function does not remove unit's weapons. | |||
Note: If you make a unit captive, that unit will still fire on the enemy, but the enemy will not fire back. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | person '''setCaptive''' captive |= Syntax | ||
|p1= person: [[Object]] |= Parameter 1 | |||
|p2= captive: [[Boolean]] |= Parameter 2 | |||
| [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>soldier1 setCaptive [[true]]</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|SETCAPTIVE]] | |||
[[Category:Scripting Commands OFP 1.96|SETCAPTIVE]] | |||
[[Category:Scripting Commands OFP 1.46|SETCAPTIVE]] | |||
[[Category:Scripting Commands ArmA|SETCAPTIVE]] |
Revision as of 23:07, 1 August 2006
Description
- Description:
- Mark unit as captive. If unit is a vehicle, commander is marked. A captive is neutral to everyone. Note: This function does not remove unit's weapons. Note: If you make a unit captive, that unit will still fire on the enemy, but the enemy will not fire back.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
soldier1 setCaptive [[true]]
Additional Information
- See also:
- See also needed
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