self:get_range
Client
Retrieves the maximum range of the spot light
Syntax
local range = self:get_range()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | range | Current light range in world units |
Examples
local entity = light.spot.create()
core.engine.print("info", "Spot light range:", entity:get_range())