Documentation/Engine/Units/sound data

From SCS Modding Wiki
< Documentation‎ | Engine‎ | Units
Revision as of 14:01, 20 June 2017 by 50keda (Talk | contribs) (Attributes)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The sound_data unit class is used to define sounds.

Attributes

Name Type Default Value Description
name string Path to the sound clip (e.g. name: "/sound/environment/timmys_ducks.ogg")
looped bool false When true, the sound clip will be looped while active. When false, it will play once when triggered.
is_2d bool false
volume float 1.0 Playback volume relative to recorded level (0.0 is full attenuation, 1.0 is straight through, 2.0 is twice as loud)