self:set_global_rotation
Client
Sets the global world-space rotation of the point light
Syntax
local status = self:set_global_rotation(
rotation
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | rotation | Rotation to apply in degrees as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.point.create()
entity:set_global_rotation({0, 45, 0})