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



Introduced in

Version:1.50

Description

Description:Returns the status of different vehicle lights, as set by either the user input (using the Action Menu or control keys), or setVehicleLights.

Each light element can have one of the following states:

  • -2: Forced off (user cannot override it, either using the Action Menu or control keys).
  • -1: Off (user can turn it on again).
  • 1: On (user can turn it off again).
  • 2: Forced on (user cannot override it, either using the Action Menu or control keys).

Syntax

Syntax:getVehicleLights car
Parameters:
Return Value:Array - [main, side, convoy, left, right]. If the vehicle has no lights defined, nil is returned.

Alternative Syntax

Syntax:getVehicleLights aircraft
Parameters:
Return Value:Array - [landing lights]. If vehicle has no lights defined, nil is returned.

Examples

Examples:
_lights = getVehicleLights tank1

Additional Information

See also: setVehicleLights
Multiplayer: 
Problems: 

Notes