Airbrakes

Summary

The airbrakes controller is used to control the sound events on vehicle using pneumatic brakes, like buses and semi-trucks.

It plays a sound when the brakes are released, adjusting the intensity based on how much the brakes are released.


File Info

Filename airbrakes.lua
Path /lua/vehicle/controller/airbrakes.lua
Type Auxiliary
Usage type Multiple (Not useful)

JBeam Properties

string
type
The id of the node that will be used as the sound emitter
string
type
event:>Vehicle>Pneumatics>Air_Brakes
default
The sound event that will be played when releasing the brakes
number
type
0.5
default
Minimum time delay between two sound events
string
type
brake
default
The name of the electrics that will trigger the sound.


Example Usage


"controller": [
    ["fileName"],
    ["airbrakes", {"soundNode:": ["fm2l"]}],
],
Last modified: 18/12/2021 14:51

Any further questions?

Join our discord