Overview
Env Zone is a volume object (e.g.: restrictors). It's a sound propagation volume and it can be linked with an Env Game object.
Env Zone acts like a normal volume. You can, and should, scale them to adjust to your scene.
Env Areas are like Env Zones but the former allow you to draw your own shapes.
Setup
Look for "Env → Env Zone" or "Env Areas" in the Entities Toolbar.
It should look like a transparent orange cube volume on the scene.
| |
---|
Base | Name of the EnvZone. Recommended: give it a meaningful name! |
Class | Allows you to select a class for sound propagation. This will adjust echo, sound propagation, and other values. |
Outdoor | If the volume is located outdoors. |
Game Links | On the "..." allows you to link an Env Game object to it. |
If everything is set up correctly (Env Game with sounds, and properly linked to an Env Zone/Area), you should be able to hear the BGM/sounds when inside the volume.
Env Zones can overlap each other but take in consideration that the engine can only select ONE Env Zone at a time.
So, if you have an overlap between Env Zones, the engine will always get the one with the lower Y(location) value. If both have the same Y value, it will constantly switch between them, each frame, which is not desirable.
Example: you have 2 overlapping zones: A and B. A has a 10 Y value and B has a 20 Y value. If the player is in the overlapping section, the engine will prioritize zone A instead of B.
To check in which volume you are, look for Debug Toolbar → Stats → st_sounds