Level Editor/Entities/Sounds
Jump to navigation
Jump to search
| Sounds | |
|---|---|
| Made with | Functional > Create Point Sound; any brush with Is Sound Volume; Map Config > Soundscape |
| What it is | Sounds at a point, ambient sound in an area, and map-wide background audio |
| In the game | Yes, it is exported with the map |
A map can carry three kinds of sound:
- A point sound plays from one spot and gets quieter with distance: a humming machine, a waterfall, a radio.
- A sound volume plays while a player is inside an area: the wind on a rooftop, the drip of a cave, the hum of an engine room.
- The soundscape plays everywhere, whatever a player's position: music or general ambience. It is set in Map Config > Soundscape.
Your own sound files (.wav, .ogg, .mp3) come in through File > Import Custom Asset... or the Import External File… button of the sound picker, and are packed into the map's export. See Custom assets.
Point sound
- Choose Functional > Create Point Sound.
- Click where the sound comes from.
- In the inspector, click Stream to pick a sound.
Inspector (the standard positional sound settings; the most used):
| Setting | Type | Default | What it does |
|---|---|---|---|
| Point Name | Text | empty | A label shown above it in the editor. |
| Stream | Sound | none | The sound to play. |
| Volume Db | Decibels | 0 | Loudness. Negative is quieter. |
| Unit Size | Number | 10 | How far the sound carries before it starts to fade. Larger is heard further. |
| Max Distance | Meters | 0 (no limit) | Beyond this the sound is not heard at all. |
| Pitch Scale | Number | 1 | Plays the sound faster and higher, or slower and lower. |
| Autoplay | Check box | Off | Start playing when the map starts. |
| Attenuation Model | List | Inverse | How the sound fades with distance. |
To loop a sound, use a sound file set to loop.
Sound volumes
Any brush can be a sound volume, so the area can be the exact shape of a corridor or a room rather than a box.
- Build a brush of the area's shape.
- Tick Is Sound Volume in the inspector. The brush is no longer solid or visible in the game.
- Set its sound settings.
| Setting | Type | Default | What it does |
|---|---|---|---|
| Sound Name | Text | empty | A name for the sound volume. |
| Stream | Sound | none | What plays. |
| Volume Db | -60 to 6 dB | 0 | Loudness. |
| Pitch Scale | 0.01 to 4 | 1 | Playback speed and pitch. |
| Autoplay | Check box | On | Play automatically. |
| Loop When Inside | Check box | On | Keep the sound looping while the player is inside the volume. |
A brush cannot be a zone and a sound volume at once. Edit > Click Through Sound Volumes lets you click what is behind them.
Sounds of doors and buttons
Doors and buttons pick their sounds from the game's own sound list (type to search it), not from imported files.