self:set_rotation

Client

Sets the local rotation of the area light


Syntax

local status = self:set_rotation(
    rotation
)

Parameters

TypeNameDescription
vector3rotationRotation to apply in degrees as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Rotate a area light 45 degrees on the Y axis
local entity = light.area.create()

entity:set_rotation({0, 45, 0})

On this page