self:set_distance_fade_begin
Client
Sets the distance at which the spot light begins to fade out
Syntax
local status = self:set_distance_fade_begin(
distance
)Parameters
| Type | Name | Description |
|---|---|---|
float | distance | Fade begin distance in world units |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.spot.create()
entity:set_distance_fade_begin(1.0)