self:set_quaternion
Client
Sets the rotation of the spot light using a quaternion
Syntax
local status = self:set_quaternion(
quaternion
)Parameters
| Type | Name | Description |
|---|---|---|
quaternion | quaternion | Rotation to apply as {x, y, z, w} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.spot.create()
entity:set_quaternion({0, 0, 0, 1})