self:set_pitch_scale
Client
Sets the pitch scale of the audio-3d instance
Syntax
local status = self:set_pitch_scale(
value
)Parameters
| Type | Name | Description |
|---|---|---|
float | value | Pitch multiplier to apply - where 1.0 is normal pitch and 2.0 doubles it and so onHigher or lower values scale accordingly |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.audio_3d.create("sounds/sfx.ogg")
entity:set_pitch_scale(1.5)