Introduced in

Version:3.4

Description

Description:

Defines the turn-out behavior for a specific gunner of a vehicle.

This command overrides any actions caused by the setBehaviour command.

Syntax

Syntax:vehicle forceCrewInOutTurrets [turret, turnout]
Parameters:
  • vehicle: Object - Vehicle with a hatched gunner positions.
  • turret: Array - List of turret paths that should be affected.
  • turnout: String - Whether gunner should turn out or in. Can be:
    • "OUT": Turn out.
    • "IN": Turn in.
    • "DEFAULT": Resume default behavior.
Return Value:Nothing

Alternative Syntax

Syntax:forceCrewInOutTurrets vehicle
Parameters:
  • vehicle: Object - Vehicle to examine.
Return Value:Array - Contains [Array, String] for each turret, with turret path and current turn-out behavior ("OUT", "IN", or "DEFAULT").

Examples

Examples:
Gunners at turret [0] and [0,0] should turn out:
tank1 forceCrewInOutTurrets [[[0],[0,0]], "out"]
Return turn-out settings for tank1:
_tList = forceCrewInOutTurrets tank1
// might return: [[[0],"DEFAULT"],[[0,0],"DEFAULT"],[[0,1],"DEFAULT"]]

Additional Information

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

Notes