Skip to content

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

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 endlessly
  • ONCE β€” The sound plays once
  • RANDOM β€” 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 loaded
  • FALSE β€” Only start the sound in response to an OnTrigger event

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 effect
  • FALSE β€” 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 obstructions
  • FALSE β€” 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.