zCVobSound
Quick Infos
Class Name: zCVobSound
Version Identifiers:
β Gothic I: 12289
β Gothic II: 12289
Sources:
β spacerhilfedatei.sph
β gothic-library.ru
β zk.gothickit.dev
Emits a sound defined by a script instance in a given radius. The sound playback can be activated by sending an OnTrigger event to the VObject and sending an OnUntrigger event disables the sound playback.
Class members
- zCVob
- zCZone
- zCVobSound
- Sound
- sndVolume = 100
- sndMode = LOOPING
- sndRandDelay = 5
- sndRandDelayVar = 2
- sndStartOn = TRUE
- sndAmbient3D = FALSE
- sndObstruction = FALSE
- sndConeAngle = 0
- sndVolType = SPHERE
- sndRadius = 1200
- sndName = ""
- Sound
- zCVob
- zCZone
- zCVobSound
- Sound
- sndVolume = 100
- sndMode = LOOPING
- sndRandDelay = 5
- sndRandDelayVar = 2
- sndStartOn = TRUE
- sndAmbient3D = FALSE
- sndObstruction = FALSE
- sndConeAngle = 0
- sndVolType = SPHERE
- sndRadius = 1200
- sndName = ""
- Sound
- zCVob
- zCZone
- zCVobSound
- Sound
- sndVolume = 100
- sndMode = LOOPING
- sndRandDelay = 5
- sndRandDelayVar = 2
- sndStartOn = TRUE
- sndAmbient3D = FALSE
- sndObstruction = FALSE
- sndConeAngle = 0
- sndVolType = SPHERE
- sndRadius = 1200
- sndName = ""
- soundIsRunning = FALSE
- soundAllowedToRun = FALSE
- Sound
- zCVob
- zCZone
- zCVobSound
- Sound
- sndVolume = 100
- sndMode = LOOPING
- sndRandDelay = 5
- sndRandDelayVar = 2
- sndStartOn = TRUE
- sndAmbient3D = FALSE
- sndObstruction = FALSE
- sndConeAngle = 0
- sndVolType = SPHERE
- sndRadius = 1200
- sndName = ""
- soundIsRunning = FALSE
- soundAllowedToRun = FALSE
- Sound
Class member overview
sndVolume
The volume of the sound effect in percent (0-100).
sndMode
Determines how the sound effect is played.
Accepted values:
LOOPINGβ The sound effect is repeated endlesslyONCEβ The sound plays onceRANDOMβ The sound effect is repeated endlessly with a random delay between repetitions
sndRandDelay
The average delay between repetitions in seconds if sndMode is RANDOM.
Warning
Only relevant if sndMode is RANDOM.
sndRandDelayVar
The maximum deviation of the random delay between repetitions if sndMode is RANDOM. The resulting delay will be a value between sndRandDelay Β± sndRandDelayVar.
Warning
Only relevant if sndMode is RANDOM.
sndStartOn
Whether to start the sound when loading the world.
Accepted values:
TRUEβ Start the sound when the world is loadedFALSEβ Only start the sound in response to anOnTriggerevent
sndAmbient3D
Determines whether the sound is an omnidirectional ambient sound. It will change volume depending on the distance to this VObject, but it won't sound as if this VObject is emitting the effect.
Accepted values:
TRUEβ Emit an ambient sound effectFALSEβ Emit a directional sound effect
sndObstruction
Whether to dampen the sound when there is no direct path from the VObject to the listener.
Accepted values:
TRUEβ The sound is dampened by obstructionsFALSEβ The sound is not dampened
sndConeAngle
When set to a value other than 0, determines a cone in front of the VObject in which the sound can be heard. To listeners outside of that cone, the sound is not heard. Only values between 0 and 360 are valid.
sndVolType
Determines the type of volume used to check whether the sound can be heard.
Accepted values:
SV_SPHEREβ The sound the be heard in a sphere around this VObject.SV_ELLIPSOIDβ The sound can be heard within an ellipsoid defined by the VObject's bounding box.
sndRadius
The radius in which the sound can be heard.
sndName
The name of the script instance describing the sound.
soundIsRunning
Unknown.
Warning
This property is only available in saved games.
soundAllowedToRun
Unknown.
Warning
This property is only available in saved games.