setCaptive: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
[[Category:Scripting Commands ArmA|S]] | [[Category:Scripting Commands ArmA|S]] | ||
<h2 style="color:#000066">'''''person'' setCaptive ''status'''''</h2> | <h2 style="color:#000066">'''''person'' setCaptive ''status'''''</h2> |
Revision as of 10:34, 23 April 2006
person setCaptive status
Operand types:
person: Object
status: Boolean
Type of returned value:
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.
Example:
soldier1 setCaptive true