Point Light

self:translate

Client

Moves the point light by the given offset in the parent's coordinate space

Syntax

local status = self:translate(
    offset
)

Parameters

TypeNameDescription
vector3offsetOffset to translate by as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

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

On this page