setCaptive: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 18: Line 18:
Mark unit as captive.
Mark unit as captive.
If unit is vehicle, commander is marked.
If unit is vehicle, commander is marked.
Captive is neutral to everyone.br<
Captive is neutral to everyone.<br>
Note: This function does not remove unit's weapons.<br>
Note: This function does not remove unit's weapons.<br>
Note: If you make a unit captive, that unit will still fire on the enemy, but the enemy will not fire back.
Note: If you make a unit captive, that unit will still fire on the enemy, but the enemy will not fire back.

Revision as of 06:18, 17 April 2006

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. 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