GRW ScriptHook 0.11.0
Plugin API for Ghost Recon Wildlands
Loading...
Searching...
No Matches
Weather and time

The environment object, via the engine's transition. More...

Enumerations

enum  ShWeather {
  SH_WEATHER_SUNNY = 0 , SH_WEATHER_CLOUDS_LIGHT , SH_WEATHER_CLOUDS_HEAVY , SH_WEATHER_FOG ,
  SH_WEATHER_RAIN_LIGHT , SH_WEATHER_RAIN_HEAVY
}
 Weather type, blended by the engine over its default ten seconds. More...

Functions

SH_API int ShSetWeather (int type)
SH_API int ShSetWeatherBlend (int type, float seconds)
 The same, blended over seconds.
SH_API int ShReleaseWeather (void)
 Hand the weather back to the ambient system.
SH_API int ShGetWeather (int *out)
SH_API int ShSetTime (float hours)
 Time of day in hours past midnight, 0 to 24.
SH_API int ShGetTime (float *out)
SH_API int ShSetTimeSpeed (float multiplier)
 Clock rate.
SH_API int ShGetTimeSpeed (float *out)

Detailed Description

The environment object, via the engine's transition.

Enumeration Type Documentation

◆ ShWeather

enum ShWeather

Weather type, blended by the engine over its default ten seconds.

Ambient stays off until ShReleaseWeather.

Enumerator
SH_WEATHER_SUNNY 
SH_WEATHER_CLOUDS_LIGHT 
SH_WEATHER_CLOUDS_HEAVY 
SH_WEATHER_FOG 
SH_WEATHER_RAIN_LIGHT 
SH_WEATHER_RAIN_HEAVY 

Function Documentation

◆ ShSetWeather()

SH_API int ShSetWeather ( int type)

◆ ShSetWeatherBlend()

SH_API int ShSetWeatherBlend ( int type,
float seconds )

The same, blended over seconds.

0 changes at once.

◆ ShReleaseWeather()

SH_API int ShReleaseWeather ( void )

Hand the weather back to the ambient system.

◆ ShGetWeather()

SH_API int ShGetWeather ( int * out)

◆ ShSetTime()

SH_API int ShSetTime ( float hours)

Time of day in hours past midnight, 0 to 24.

The clock keeps running from the new hour.

◆ ShGetTime()

SH_API int ShGetTime ( float * out)

◆ ShSetTimeSpeed()

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.

◆ ShGetTimeSpeed()

SH_API int ShGetTimeSpeed ( float * out)