self:is_autoplayed

Client

Checks whether the audio-2d instance is autoplayed


Syntax

local result = self:is_autoplayed()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if autoplayed, false otherwise

Examples

Check autoplay state of an audio-2d instance
local entity = core.audio_2d.create("sounds/ambient.ogg")

core.engine.print("info", "Autoplay:", entity:is_autoplayed())

On this page