Skip to content

AudioSourceInfo

Celestial Body Schema / Definitions / AudioSourceInfo
Schema Type: JSON Type: object

No Description Found

audio

Type: string

The audio to use. Can be a path to a .wav/.ogg/.mp3 file, or taken from the AudioClip list.


minDistance

Type: number

At this distance the sound is at its loudest.


maxDistance

Type: number Default: 5

The sound will drop off by this distance (Note: for signals, this only effects when it is heard aloud and not via the signalscope).


volume

Type: number Default: 0.5

How loud the sound will play


position

Type: MVector3

Position of the object

See Definitions/MVector3

isRelativeToParent

Type: boolean

Whether the positional and rotational coordinates are relative to parent instead of the root planet object.


parentPath

Type: string

The relative path from the planet to the parent of this object. Optional (will default to the root sector).


rename

Type: string

An optional rename of this object


track

Type: NHAudioMixerTrackName Default: environment

The audio track of this audio source.
Most of the time you'll use environment (the default) for sound effects and music for music.

See Definitions/NHAudioMixerTrackName