Soundscape

The soundscape section is used to define which sounds will be used for different events, along with their emitter nodes.

Example of sounds include the horn, indicator sounds, and handbrake engagement sounds.

Required arguments

string
type
The function that will trigger the sound
See the electrics page for more information.
string
type
The soundclip that will be played

Optional arguments

string
type
The node that will be used as the emitter

If no node is defined beforehand, the refnode will be used.

The node for the horn should be defined in the same component as reference to the horn slot.

Simple Example

"soundscape": [
    ["name", "src"],
    ["horn", "event:>Vehicle>Electrics>Horns>MER_V2"],
],

Advanced Example

"soundscape": [
    ["name", "src"],
    //indicator6,
    {"node:":"int1l"},
    ["indicatorStart", "event:>Vehicle>Interior>Indicator>PEU_On"],
    ["indicatorStop", "event:>Vehicle>Interior>Indicator>PEU_Off"],
    ["indLoop1", "event:>Vehicle>Interior>Indicator>PEU_Click"],
    ["indLoop2", "event:>Vehicle>Interior>Indicator>PEU_Clack"],
    //lights11
    ["LightOn", "event:>Vehicle>Interior>Light>POL_Light_On"],
    ["LightOff", "event:>Vehicle>Interior>Light>POL_Light_On"],
    //handbrake2
    {"node:":"f7"},
    ["handbrakeDisengaged","event:>Vehicle>Interior>Handbrake_Electric>Electric_01_Unlock"],
    ["handbrakeEngaging","event:>Vehicle>Interior>Handbrake_Electric>Electric_01_Lock"],
],
Last modified: 2/12/2021 20:40

Any further questions?

Join our discord