Skip to content

HornProfile

public sealed class HornProfile

Namespace Chassis.Api

Horn and lock chirp sounds of a vehicle.

public string Clip = string.Empty

Sound name from ChassisApi.RegisterSound; empty is the built-in two-tone horn.

Value The name a mod passed to ChassisApi.RegisterSound, e.g. “mymod_horn”.

public string Chirp = string.Empty

Sound name of the lock chirp; empty is the built-in chirp.

Value The name a mod passed to ChassisApi.RegisterSound, e.g. “mymod_chirp”.

public Vector3 Position = new Vector3(0f, 0.6f, 1.8f)

Where the sound comes from, in the vehicle root’s space.

Value A point in metres; the default (0, 0.6, 1.8) is at the front of a car.

public float Volume = 0.8f

Volume of horn and chirp, 0 to 1.