self:get_spot_angle
Client
Retrieves the angular radius of the spot light cone in degrees
Syntax
local angle = self:get_spot_angle()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | angle | Current cone angle in degrees |
Examples
local entity = light.spot.create()
core.engine.print("info", "Spot Angle:", entity:get_spot_angle())