self:set_range
Client
Sets the maximum range of the spot 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.spot.create()
entity:set_range(15.0)