self:set_emission_angle

Client

Sets the emission angle of the audio-3d instance


Syntax

local status = self:set_emission_angle(
    value
)

Parameters

TypeNameDescription
floatvalueHalf-angle of the emission cone in degrees
Audio is only emitted within this cone when emission angle is enabled via self:set_emission_angle_enabled

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Configure a narrow directional ambient
local entity = core.audio_3d.create("sounds/ambient.ogg")

entity:set_emission_angle_enabled(true)
entity:set_emission_angle(30.0)

On this page