unassignVehicle

From Bohemia Interactive Community
Revision as of 10:44, 20 May 2006 by Thobson (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


unassignVehicle unit


Operand types:

unit: Object

Type of returned value:

Nothing

Description:

Unit is unassigned from the vehicle.

If he is currently in, group leader will issue order to disembark.


Examples:

unassignVehicle player

will make the player disembark

{unassignVehicle _x} forEach crew vehiclename

will make all the occupants of a vehicle disembark


Comments:

Even though:

{unassignVehicle _x} forEach crew vehiclename

will make all the occupants of a vehicle disembark, if they are the original crew of the vehicle then they will just get back in again. To prevent this happening use also allowGetIn as in the example below:

crew vehiclename allowGetIn false

{unassignVehicle _x} forEach crew vehiclename