GetWeatherRevision

From Wiki G1R-MP G1 Remake Multiplayer
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.