GetWeatherRevision

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 09:53, 15 August 2026 by QCherry (talk | contribs) (Complete Lua function catalog)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getWeatherRevision

Returns the revision number of the authoritative world environment state.

Syntax

int revision = getWeatherRevision()

Parameters

This function does not accept parameters.

Returns

Returns the current non-negative environment revision as an integer.

Examples

Log the revision used for weather synchronization:

outputDebugString("Weather revision: " .. getWeatherRevision())

Notes

  • Available only in server-side resource scripts.
  • Use this with getPlayerWeatherSync when diagnosing whether a client has acknowledged the latest state.