self:get_attenuation

Client

Retrieves the attenuation curve exponent of the point light, which controls how light intensity falls off with distance


Syntax

local attenuation = self:get_attenuation()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatattenuationCurrent attenuation exponent

Examples

Get the attenuation of a point light
local entity = light.point.create()

core.engine.print("info", "Point light attenuation:", entity:get_attenuation())

On this page