self:set_spot_angle
Client
Sets the angular radius of the spot light cone in degrees
Syntax
local status = self:set_spot_angle(
angle
)Parameters
| Type | Name | Description |
|---|---|---|
float | angle | Cone angle to apply in degrees |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.spot.create()
entity:set_spot_angle(45.0)