self:set_attenuation_model
Client
Sets the attenuation model of the audio-3d instance
Syntax
local status = self:set_attenuation_model(
model
)Parameters
| Type | Name | Description |
|---|---|---|
core.audio_3d.attenuation_model | model | Attenuation model to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.audio_3d.create("sounds/ambient.ogg")
entity:set_attenuation_model(core.audio_3d.attenuation_model.LOGARITHMIC)