self:set_intensity
Client
Sets the physical intensity of the area light in lumens or lux when physical light units are enabled
Syntax
local status = self:set_intensity(
intensity
)Parameters
| Type | Name | Description |
|---|---|---|
float | intensity | Physical intensity value to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.area.create()
entity:set_intensity(1.0)