onTimeChange
From Liberty Unleashed Wiki
This event is called when the time changes.
Syntax
function onTimeChange( int hour, int min )
Arguments
- hour - Current hour
- min - Current minute
Returns
This event does not handle return values.
Example
This example will notify players when the day changes.
function onTimeChange( hour, min ) { if ( ( !hour ) && ( !min ) ) { // It's midnight - 00:00 Message( "The day has changed!" ); } return 1; }
Notes
The function Message was used in this example. More info about this in the corresponding page.
Related Events
- onSSVBridgeUpdate
- onTimeChange
- onWeatherChange