sound#
Makes one or more sound clips available for use in the game. Multiple clips can be added to a sound script, and the game will randomly select one of them to play when the sound is triggered.
module yourModule {
sound yourSound {
category = Animal,
loop = true,
is3D = true,
clip {
file = media/sound/RideOfTheValkyries.ogg,
distanceMin = 20,
distanceMax = 650,
reverbFactor = 0.1,
volume = 0.7,
}
}
}
Hierarchy#
Valid Parent Blocks:
Possible Child Blocks:
ID Properties#
This block should have an ID.
Incompatible Parents:
vehicle
template
Parameters#
- alarm 🔗
Type:
arrayNo description
- alarmLoop 🔗
Type:
AnyNo description
- backSignal 🔗
Type:
stringNo description
- category 🔗
Type:
stringNo description
- engine 🔗
Type:
stringNo description
- engineStart 🔗
Type:
stringNo description
- engineTurnOff 🔗
Type:
stringNo description
- handBrake 🔗
Type:
stringNo description
- horn 🔗
Type:
stringNo description
- ignitionFail 🔗
Type:
AnyNo description
- ignitionFailNoPower 🔗
Type:
stringNo description
- is3D 🔗
Type:
booleanThis parameter looks unused.
- loop 🔗
Type:
booleanWhether the sound should loop or not. The sound plays until turned off or the emitter is destroyed.
- master 🔗
Type:
stringLinks the sound to a master sound category, which controls the volume of all sounds linked to it.
Allowed values:
PrimaryAmbientMusicVehicleEngine
- maxInstancesPerEmitter 🔗
Type:
integerNo description