self:set_unit_size
Client
Sets the unit size of the audio-3d instance
Syntax
local status = self:set_unit_size(
value
)Parameters
| Type | Name | Description |
|---|---|---|
float | value | Reference distance at which the audio plays at full volume Increasing this value makes the audio audible at greater distances |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.audio_3d.create("sounds/ambient.ogg")
entity:set_unit_size(10.0)