Sky

gfx.sky.get_rotation

Client

Retrieves the current rotation of the sky

Syntax

local result = gfx.sky.get_rotation()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector3resultCurrent sky rotation in degrees as {x, y, z}

Examples

Print current sky rotation
core.engine.print("info", "Sky rotation:", util.table.unpack(gfx.sky.get_rotation()))

On this page