self:is_looped

Client

Checks whether the audio-3d instance is set to loop playback


Syntax

local result = self:is_looped()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if playback loops once it reaches the end, false otherwise

Examples

Check if an audio-3d instance is looping
local entity = core.audio_3d.create("sounds/ambient.ogg")

core.engine.print("info", "Audio 3d loop:", entity:is_looped())

On this page