setCaptive

From Bohemia Interactive Community
Revision as of 12:03, 17 April 2006 by Planck (talk | contribs)
Jump to navigation Jump to search

back to COMREF

person setCaptive status


Operand types:

person: Object

status: Boolean

Type of returned value:

Nothing

Description:

Mark unit as captive.
If unit is 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