setCaptive: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETCAPTIVE]]
[[Category:Scripting Commands|SETCAPTIVE]]
[[Category:Scripting Commands OFP 1.97|SETCAPTIVE]]
[[Category:Scripting Commands OFP 1.96|SETCAPTIVE]]
[[Category:Scripting Commands OFP 1.46|SETCAPTIVE]]
[[Category:Scripting Commands OFP 1.46|SETCAPTIVE]]
[[Category:Scripting Commands ArmA|SETCAPTIVE]]
[[Category:Scripting Commands ArmA|SETCAPTIVE]]

Revision as of 20:27, 1 June 2006


person setCaptive status


Operand types:

person: Object

status: Boolean

Type of returned value:

Nothing

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