Scripting/Squirrel/Events/Game/onWeatherChange
From VC-MP Wiki
This event is called when the server is started.
Syntax
function onWeatherChange( oldWeather, newWeather )
Parameters
- oldWeather - The weather before the change
- newWeather - The current weather
Example
This example will print the server name when it is started.
function onWeatherChange( oldWeather, newWeather ) { Message( "*** Weather change from " + oldWeather + " to " + newWeather ); }
Notes
The function Message was used in in this example. More info about it in the corresponding page.
Related Events
- onTimeChange
- onWeatherChange
