self:set_distance_fade_length

Client

Sets the length of the fade transition on the point light


Syntax

local status = self:set_distance_fade_length(
    distance
)

Parameters

TypeNameDescription
floatdistanceFade transition length in world units

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply distance fade length on a point light
local entity = light.point.create()

entity:set_distance_fade_length(1.0)

On this page