Skip to main content

Audio And Lights

Overview

Vehicles use a singular Audio Component to manage all audio-related functionality. Below is a list of inputs that the component can take, along with the parameters exposed for each.

Audio Component Inputs

NameDescriptionParams
SoundBase sound of the engine.RPM, Turbo, Load
StarterSoundLooping sound for the starter.None
EngineStartSoundBlends the starter loop with the engine sound.None
StarterReleaseSoundSound for releasing the starter when the engine doesn’t start.None
HandBrakeSoundSound played when the handbrake is engaged.None
HandReleaseSoundSound played when the handbrake is released.None
BrakeStartSoundInitial sound when brakes are applied (e.g., air sounds for trucks).None
BrakeLoopSoundLooping sound of brake pads.None
BrakeReleaseSoundSound for releasing brakes (especially for air brakes in trucks).None
ReverseSoundBeeping sound when reversing.None
HornSoundSound of the horn.None
EngineHealthSoundSound for engine damage (e.g., knocks and misfires).Health (1 = silent, 0 = max), RPM

Light Component

Vehicles use a singular Light Component to manage and coordinate changes to lights on the vehicle's mesh. This component automatically detects any material slot with the name Lights as a light material and passes the following inputs to the material.

Light States

The following states control specific light functionalities based on the material slots:

State NameDescription
WhiteFrontActivates the front white lights (headlights).
IndicatorLeftActivates the left indicator (turn signal).
IndicatorRightActivates the right indicator (turn signal).
RedBottomActivates the brake lights.
WhiteBackActivates the reverse lights.
RedUpActivates the upper red lights (e.g., for trucks or trailers).
HazardLightActivates both indicators simultaneously for hazard mode.

Light Component Properties

Property NameDescription
EmissiveStrengthControls the brightness of the emissive light material.
IndicatorIntensityAdjusts the intensity of indicator (turn signal) lights.
RedLightIntensityAdjusts the intensity of red lights (e.g., brake lights).
WhiteLightIntensityAdjusts the intensity of white lights (e.g., headlights, reverse lights).
IndicatorSpeedDetermines the blinking speed of indicator lights.