audPlaySound3D

Category: Audio

Syntax:

audPlaySound3D:Int(sound:Int, x:Double, y:Double, z:Double)


Parameters

Returns

Int



Summary

Plays a sound once at a specific 3D position and returns a channel handle.

Takes sound (sound handle), x/y/z (3D position coordinates).

Returns a channel handle.

View detailed documentation online



Example
Local pistolSound:Int = audLoadSound("pistol.wav")

Local channel = audPlaySound3D(pistolSound, sourceX, sourceY, sourceZ)

BambooBasic © 2026 Michael Denathorn