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

TypeNameDescription
floatangleCurrent cone angle in degrees

Examples

Get the cone angle of a spot light
local entity = light.spot.create()

core.engine.print("info", "Spot Angle:", entity:get_spot_angle())

On this page