self:get_panning_strength

Client

Retrieves the panning strength of the audio-2d instance


Syntax

local result = self:get_panning_strength()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatresultCurrent panning strength

Examples

Get the panning strength of an audio-2d instance
local entity = core.audio_2d.create("sounds/ambient.ogg")

core.engine.print("info", "Panning strength:", entity:get_panning_strength())

On this page