SetWorldTime
Description:
Function SetWorldTime sets the world time (for all players) to a specific hour.
This function is only relevant for players that do not use a passing clock - see TogglePlayerClock. |
To set the minutes and/or to set the time for individual players, see SetPlayerTime. |
Parameters:
(hour)
int | hour | The hour to set (0-23) |
Return Values:
This function does not return any specific values.
Examples:
// Set the time to 12 o'clock (noon) SetWorldTime(12);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetPlayerTime: Set a player's time.
- SetWeather: Set the global weather.
- SetGravity: Set the global gravity.