Theme
Weather and time
The environment object, via the engine's transition.
| Export | Summary |
|---|---|
ShSetWeather | — |
ShSetWeatherBlend | The same, blended over seconds. |
ShReleaseWeather | Hand the weather back to the ambient system. |
ShGetWeather | See ShReleaseWeather. |
ShSetTime | Time of day in hours past midnight, 0 to 24. |
ShGetTime | See ShSetTime. |
ShSetTimeSpeed | Clock rate. |
ShGetTimeSpeed | See ShSetTimeSpeed. |
ShSetWeather
c
SH_API int ShSetWeather(int type);No doc comment in the header.
scripthook.h, line 3058
ShSetWeatherBlend
c
SH_API int ShSetWeatherBlend(int type, float seconds);The same, blended over seconds. 0 changes at once.
scripthook.h, line 3060
ShReleaseWeather
c
SH_API int ShReleaseWeather(void);Hand the weather back to the ambient system.
scripthook.h, line 3062
ShGetWeather
c
SH_API int ShGetWeather(int *out);Documented together with ShReleaseWeather just above.
scripthook.h, line 3063
ShSetTime
c
SH_API int ShSetTime(float hours);Time of day in hours past midnight, 0 to 24. The clock keeps running from the new hour.
scripthook.h, line 3068
ShGetTime
c
SH_API int ShGetTime(float *out);Documented together with ShSetTime just above.
scripthook.h, line 3069
ShSetTimeSpeed
c
SH_API int ShSetTimeSpeed(float multiplier);Clock rate. 1 is normal, 0 stops it, 100 runs a day in about fifteen minutes. Holds until set again.
scripthook.h, line 3074
ShGetTimeSpeed
c
SH_API int ShGetTimeSpeed(float *out);Documented together with ShSetTimeSpeed just above.
scripthook.h, line 3075