Skip to content

SetFalloff

Narta Xaymar Dirks edited this page Nov 14, 2026 · 1 revision

SetFalloff

SetFalloff:Void mode:Int32
Parameter Mode Type Default Description
mode In Int32 required 0 is the curve of this runtime, 1 the curve of the original and 2 the curve of SoLoud, see CreateListener. Anything else is a runtime error.

Description

Picks the curve that the volume of 3D sounds falls off by with distance, for the channels that start after the call. Channels that already play keep theirs, see SetChannelFalloff. This is a BlitzLLVM extension.

Differences

  • Without a call the default is 0, or what the environment variable BLITZLLVM_VOLUME_FALLOFF says, see Environment variables. The call wins over the variable.

Examples

; The curve of the original Blitz3D (FMOD 3), full volume up to a meter and then meters ^ -rolloff.
SetFalloff 1
listener = CreateListener(camera)

Related Commands

GetChannelFalloff, GetFalloff, SetChannelFalloff

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally