self:get_attenuation
Client
Retrieves the attenuation curve factor of the audio-2d instance
Syntax
local result = self:get_attenuation()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | result | Current attenuation curve factor |
Examples
local entity = core.audio_2d.create("sounds/ambient.ogg")
core.engine.print("info", "Attenuation:", entity:get_attenuation())