self:set_range
Client
Sets the maximum range of the point light
Syntax
local status = self:set_range(
range
)Parameters
| Type | Name | Description |
|---|---|---|
float | range | Light range in world units |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.point.create()
entity:set_range(10.0)