self:set_distance_fade_enabled

Client

Sets whether distance-based fade is enabled on the spot light


Syntax

local status = self:set_distance_fade_enabled(
    state
)

Parameters

TypeNameDescription
boolstatetrue to enable distance fade, false to disable

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply distance fade enabled on a spot light
local entity = light.spot.create()

entity:set_distance_fade_enabled(true)

On this page