World

Tip

This is a namespace named World. It is not possible to initialize or create Instances. It’s just a name with Functions and Events which are accessed with . instead of :. This is going to be changed soon ;).

Note

This is a Client only Namespace.

Attention

This page is under construction.

Functions

Returns

Name

Description

client-only-label

SetWind(number)

Sets the global Wind intensity

client-only-label

SetWeather(number)

Sets the global Weather (0 - Clear, 1 - Rain, 2 - Cloudy, 3 - Thunderstorm)

client-only-label

SetSunAngle(number)

Sets the sun’s angle (0-360)

client-only-label

SetSunSpeed(number)

Sets the sun’s time speed (default: ‘60’, which means 60 seconds in game = 1 second in real world)

client-only-label

SpawnDefaultSun()

Overrides all Light/Sun Actors with the NanosWorld’s Official one, to be able to use the functions from this page

client-only-label

SetTime(number Hours, number Minutes)

Sets the global’s time of the day

client-only-label

number

GetWeather()

client-only-label

number

GetWind()

client-only-label

number

GetSunAngle()

client-only-label

number

GetSunSpeed()

client-only-label

number

GetTime()

(Hours * 60 + Minutes) - Goes from 0 to 1440

Examples

-- makes rain
World.SetWeather(1)

-- makes 11:30 AM
World.SetTime(11, 30)