Part of StarfallEx namespace
๐ External
Bass:setFade(min, max, useSimpleFading)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Sets the fade distance of the sound in 3D space. Must have 3d flag for this to have any effect. For both fading styles, the sound will be at full volume (the value of :setVolume()) at distances between 0 and min. If simple fading is enabled, the sound will fade towards 0 until the max distance is reached, becoming inaudible. If simple fading is disabled, the sound will start to fade, then lock its volume once max distance is reached. It will almost always be faintly heard.
Parameters
| Name | Type | Description |
|---|---|---|
min | number | The distance where the sound starts to fade. (50-1,000) |
max | number | The maximal distance, as described above. (min-20,000 for simple fading, 5,000-200,000 for non-simple fading) |
useSimpleFading? | boolean | Whether to use simple fading for this sound. True by default. |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.