GetWeatherRevision: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Automatyczna aktualizacja dokumentacji funkcji
 
Complete Lua function catalog
 
Line 24: Line 24:
* Use this with <code>getPlayerWeatherSync</code> when diagnosing whether a client has acknowledged the latest state.
* Use this with <code>getPlayerWeatherSync</code> when diagnosing whether a client has acknowledged the latest state.


[[Category:Lua Functions]]
[[Category:Server Functions]]
[[Category:Server Functions]]
[[Category:World Functions]]
[[Category:World Functions]]

Latest revision as of 09:53, 15 August 2026

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.