Skip to content

SetChannelFalloff

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

SetChannelFalloff

SetChannelFalloff:Void channel:Int32, mode:Int32
Parameter Mode Type Default Description
channel In Int32 required A channel handle from EmitSound.
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 one 3D sound falls off by with distance. It can be called while the sound plays and is heard from the next update. This is a BlitzLLVM extension.

Differences

  • A channel starts with the curve that SetFalloff has set, so this is only needed for sounds that differ from the default. A channel that is over is ignored.

Examples

; Two engines at the same distance: one with the curve of the original, one with the curve of this runtime.
a = EmitSound(engine, near)
b = EmitSound(engine, far)
SetChannelFalloff a, 1
SetChannelFalloff b, 0

Related Commands

GetChannelFalloff, GetFalloff, SetFalloff

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally