Vehicle Scanner

Parent

Functions

getColor () → (r : Float, g : Float, b : Float, e : Float)

Allows to get the color and light intensity of the scanner.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Color

Return Values
Name Type Description

Red r

Float

The red part of the color in which the scanner glows. (0.0 - 1.0)

Green g

Float

The green part of the color in which the scanner glows. (0.0 - 1.0)

Blue b

Float

The blue part of the color in which the scanner glows. (0.0 - 1.0)

Emissive e

Float

The light intensity of the scanner. (0.0 - 5.0)

getLastVehicle () → vehicle : Object<Vehicle>

Returns the last vehicle that entered the scanner.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Last Vehicle

Return Values
Name Type Description

Vehicle vehicle

Object<Vehicle>

The vehicle that entered the scanner. null if it has already left the scanner.

setColor (r : Float, g : Float, b : Float, e : Float)

Allows to change the color and light intensity of the scanner.

Details

Flags

RuntimeSync RuntimeParallel RuntimeAsync MemberFunc

Display Name

Set Color

Parameters
Name Type Description

Red r

Float

The red part of the color in which the scanner glows. (0.0 - 1.0)

Green g

Float

The green part of the color in which the scanner glows. (0.0 - 1.0)

Blue b

Float

The blue part of the color in which the scanner glows. (0.0 - 1.0)

Emissive e

Float

The light intensity of the scanner. (0.0 - 5.0)

Signals

OnVehicleEnter (Object<Vehicle> Vehicle vehicle)

Triggers when a vehicle enters the scanner.

Details
Parameters
Name Type Description

Vehicle vehicle

Object<Vehicle>

The vehicle that entered the scanner.

OnVehicleExit (Object<Vehicle> Vehicle vehicle)

Triggers when a vehicle leaves the scanner.

Details
Parameters
Name Type Description

Vehicle vehicle

Object<Vehicle>

The vehicle that left the scanner.