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
| Type | Name | Description |
|---|---|---|
bool | result | true if playback loops once it reaches the end, false otherwise |
Examples
local entity = core.audio_3d.create("sounds/ambient.ogg")
core.engine.print("info", "Audio 3d loop:", entity:is_looped())