self:set_energy
Client
Sets the energy (brightness multiplier) of the spot light
Syntax
local status = self:set_energy(
energy
)Parameters
| Type | Name | Description |
|---|---|---|
float | energy | Energy value to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.spot.create()
entity:set_energy(1.0)