self:is_paused

Client

Checks whether the audio-2d stream is currently paused


Syntax

local result = self:is_paused()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if the stream is paused, false otherwise

Examples

Resume a paused audio-2d stream
local entity = core.audio_2d.create("sounds/ambient.ogg")

entity:play()
entity:set_paused(true)

if entity:is_paused() then
    entity:set_paused(false)
end

On this page