Skip to content

ListenerDistance

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

ListenerDistance BlitzLLVM

ListenerDistance:Void value:Float32, fade_ms:Int32=0
Parameter Mode Type Default Description
value In Float32 required Meters per unit of the world. It has to be above 0, anything else is a runtime error.
fade_ms In Int32 0 How many milliseconds it takes to get to the new value. 0 (the default) changes it at once. Below 0 is a runtime error.

Description

BlitzLLVM This command does not exist in the original Blitz products. BlitzLLVM adds it.

Changes how many meters one unit of the world is, which CreateListener sets first. It sets the distances that volume falls off over and how fast things move for the doppler shift. This is a BlitzLLVM extension.

Differences

Examples

; The ship model is built at a tenth of real size.
ListenerDistance 10

Related Commands

CreateListener Blitz3D, GetListenerDistance BlitzLLVM, GetListenerDoppler BlitzLLVM, GetListenerRadius BlitzLLVM, ListenerDoppler BlitzLLVM, ListenerFalloff BlitzLLVM, ListenerRadius BlitzLLVM, ListenerRolloff BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally