Vehicle Scanner

Building Type

Buildable Network Component

Max Network Connections

1

Build Gun In Game
300
300

The vehicle scanner is a computer network component that allows you to communicate with the vehicles that drive over it. The scanner beam colors can be modified. It also emits a couple of signals that allow for notification when a vehicle drives over it.

Interface

Parent

Functions

Set Color setColor (Float Red r, Float Green g, Float Blue b, Float Emissive e)

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

Flags

RuntimeSync RuntimeParallel RuntimeAsync

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)

Get Last Vehicle getLastVehicle (Object(Vehicle) Vehicle vehicle out)

Returns the last vehicle that entered the scanner.

Flags

RuntimeSync RuntimeParallel

Return Values
Name Type Description

Vehicle vehicle

Object(Vehicle) out

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

Get Color getColor (Float Red r out, Float Green g out, Float Blue b out, Float Emissive e out)

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

Flags

RuntimeSync RuntimeParallel

Return Values
Name Type Description

Red r

Float out

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

Green g

Float out

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

Blue b

Float out

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

Emissive e

Float out

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

Signals

On Vehicle Exit OnVehicleExit (Object(Vehicle) Vehicle vehicle)

Triggers when a vehicle leaves the scanner.

Flags

Parameters
Name Type Description

Vehicle vehicle

Object(Vehicle)

The vehicle that left the scanner.

On Vehicle Enter OnVehicleEnter (Object(Vehicle) Vehicle vehicle)

Triggers when a vehicle enters the scanner.

Flags

Parameters
Name Type Description

Vehicle vehicle

Object(Vehicle)

The vehicle that entered the scanner.