self:translate
Client
Translates the audio-3d instance by an offset relative to its parent
Syntax
local status = self:translate(
offset
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | offset | World-space offset to move by as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.audio_3d.create("sounds/ambient.ogg")
entity:translate({0, 0, -5})