Exports
Server and client exports for FS-Weather
Choose the export that matches what your resource needs to do. Server exports work with the shared state; client overrides only affect one player.
Server
Read the current state
- getWeather: current conditions.
- getTime: current game time.
- getForecast: forecast HUD data.
- getFreezeState: weather and clock freeze flags.
- getPatterns: saved sequences.
- isPatternMode: whether a sequence is active.
Change the shared state
- setWeather: set conditions.
- setTime: set the game clock.
- setFreezeTime: pause or resume the clock.
- setFreezeWeather: pause or resume automatic weather changes.
- setGroundSnow: toggle ground snow.
- setFogDensity: adjust the fog overlay.
- setPatternMode: switch between pattern and random modes.
- applyPattern: run a saved pattern.
- forceSync: send a full update to all clients.
Client
These exports affect only the player running the calling client script.