self:get_spot_angle_attenuation

Client

Retrieves the spot light cone attenuation, which controls how sharply the edges of the cone fall off


Syntax

local attenuation = self:get_spot_angle_attenuation()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatattenuationCurrent cone edge attenuation value

Examples

Get the cone edge attenuation of a spot light
local entity = light.spot.create()

core.engine.print("info", "Spot Angle Attenuation:", entity:get_spot_angle_attenuation())

On this page