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

TypeNameDescription
floatangleCone angle to apply in degrees

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_spot_angle(45.0)

On this page