self:set_range

Client

Sets the maximum range of the point light


Syntax

local status = self:set_range(
    range
)

Parameters

TypeNameDescription
floatrangeLight range in world units

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the range of a point light
local entity = light.point.create()

entity:set_range(10.0)

On this page