onWeatherChange
From Liberty Unleashed Wiki
This event is called when the world weather changes.
Syntax
function onWeatherChange( int old_weather, int new_weather )
Arguments
- old_weather - The weather before it changes
- new_weather - The weather after changing
Returns
- 1 - Allows the weather to change normally
- 0 - Cancels the weather change
Example
This example will cancel the weather change if the new weather is foggy (ID 3).
function onWeatherChange( old, new ) { if ( new == 3 ) return 0; return 1; }
Notes
This example has no notes.
Related Events
- onSSVBridgeUpdate
- onTimeChange
- onWeatherChange