self:seek
Client
Seeks to a specific position in the audio-2d stream
Syntax
local status = self:seek(
position
)Parameters
| Type | Name | Description |
|---|---|---|
float | position | Position in seconds to seek to |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.audio_2d.create("sounds/ambient.ogg")
entity:play()
entity:seek(30.0)