Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.2

Description

Description:Returns information about the sun position.

Syntax

Syntax:sunOrMoon
Parameters:
Return Value:

Number - A value between 0 - 1, where 1 / 0 means that the sun is above / below the horizon. During dusk and dawn, decimal numbers are returned, but they are not accurate (for example, 0.5 might be returned during sunset, even though the sun is already fully hidden).

Examples

Examples:
_sunUp = (sunOrMoon == 1);

Additional Information

See also: getSunSet, getSunRise, moonIntensity
Multiplayer:
Problems:

Notes