self:translate
Client
Moves the spot light by the given offset in world space
Syntax
local status = self:translate(
offset
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | offset | World-space offset to apply as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.spot.create()
entity:translate({0, 2, 0})