self:set_distance_fade_length
Client
Sets the length of the fade transition on the point light
Syntax
local status = self:set_distance_fade_length(
distance
)Parameters
| Type | Name | Description |
|---|---|---|
float | distance | Fade transition length in world units |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.point.create()
entity:set_distance_fade_length(1.0)