World¶
Tip
This is a Static Class named World
. You can access it’s methods directly with :
. It is not possible to initialize or create new instances.
Note
This is a Client only Class.
Functions¶
Returns |
Name |
Description |
Set Post Process Bloom Settings |
||
SetPPChromaticAberration(number Intensity = 0, number StartOffset = 0) |
Set Post Process Chromatic Aberration Settings |
|
SetPPImageEffects(number VignetteIntensity = 0.6, number GrainJitter = 0 , number GrainIntensity = 0) |
Set Post Process Image Effect Settings |
|
SetPPFilm(number Slope = 0.8, number Toe = 0.55, number Shoulder = 0.26, number BlackClip = 0, number WhiteClip = 0.3) |
Set Post Process Film Settings |
|
SetPPGlobalSaturation(const Color& _Color) |
Set Post Process Saturation Colors. Use Alpha for overall Saturation intensity |
|
SetSunAngle(number) |
Sets the sun’s angle (0-360) |
|
SetSunSpeed(number) |
Sets the sun’s time speed (default: ‘60’, which means 60 seconds in game = 1 second in real world) |
|
Sets the global’s time of the day |
||
SetWeather(number) |
Sets the global Weather (0 - Clear, 1 - Rain, 2 - Cloudy, 3 - Thunderstorm) |
|
SpawnDefaultSun() |
Overrides all Light/Sun Actors with the NanosWorld’s Official one, to be able to use the functions from this page |
|
SetWind(number) |
Sets the global Wind intensity |
|
GetSunAngle() |
||
GetSunSpeed() |
||
GetTime() |
(Hours * 60 + Minutes) - Goes from 0 to 1440 |
|
GetWeather() |
||
GetWind() |
Examples¶
-- make it rain
World:SetWeather(1)
-- make it 11:30 AM
World:SetTime(11, 30)