Class: Entity
Lua
C++
Edit

Entity:EmitSound

Syntax

Parameter Description
sound sound to play
range distance within which the sound is audible
volume sound volume
pitch sound pitch
loopmode set to true for looping or false to play once

Returns

Returns a speaker that can be used to control the sound.

This method may return nil if the listener is out of range of the sound.

Copyright © 2024 Ultra Software.
All rights reserved.