self:get_max_volume

Client

Retrieves the maximum linear volume ceiling of the audio-3d instance


Syntax

local result = self:get_max_volume()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatresultCurrent maximum linear volume ceiling

Examples

Get the max volume of an audio-3d instance
local entity = core.audio_3d.create("sounds/ambient.ogg")

core.engine.print("info", "Max volume:", entity:get_max_volume())

On this page