Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.4

Description

Description:

Defines the turn-out behavior for the driver of a vehicle.

This command overrides any actions caused by the setBehaviour command.

Syntax

Syntax:vehicle forceCrewInOutDriver turnout
Parameters:
  • vehicle: Object - Vehicle with a hatched driver position.
  • turnout: String - Whether driver should turn out or in. Can be:
    • "OUT": Turn out.
    • "IN": Turn in.
    • "DEFAULT": Resume default behavior.
Return Value:Nothing

Alternative Syntax

Syntax:forceCrewInOutDriver vehicle
Parameters:
  • vehicle: Object - Vehicle with a hatched driver position.
Return Value:String - Current turn-out behavior ("OUT", "IN", or "DEFAULT").

Examples

Examples:
tank1 forceCrewInOutDriver "out"
_isOut = (forceCrewInOutDriver tank1 == "OUT")

Additional Information

See also: forceCrewInOut, forceCrewInOutTurrets, isTurnedOut
Multiplayer: 
Problems:Effect on cargo turrets (cargo seats from which players can use their personal weapons) may be unreliable in some vehicles.

Notes