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
| Type | Name | Description |
|---|---|---|
bool | result | true if autoplayed, false otherwise |
Examples
local entity = core.audio_2d.create("sounds/ambient.ogg")
core.engine.print("info", "Autoplay:", entity:is_autoplayed())