self:translate

Client

Moves the area light by the given offset in world space


Syntax

local status = self:translate(
    offset
)

Parameters

TypeNameDescription
vector3offsetWorld-space offset to apply as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Move a area light 2 units upward
local entity = light.area.create()

entity:translate({0, 2, 0})

On this page