Weather & Time
The same weather and clock for everyone, and the staff commands to change them.
What it is
Everyone on the server sees the same weather and the same time of day. The weather changes by itself in a natural order (sun, clouds, sometimes rain). One game day lasts 48 real minutes.
How it works
Nothing to do for players. Staff can change the weather and the clock at any time with the commands below. A manual change shows for everyone at once.
Keys & commands
| Command | What it does | Who |
|---|---|---|
/weather <type> | Set the weather, e.g. /weather rain | Admin |
/time <hour> <minute> | Set the clock, e.g. /time 21 30 | Admin |
/morning, /noon, /evening, /night | Jump to 09:00, 12:00, 18:00 or 23:00 | Admin |
/freezetime | Stop or restart the clock | Admin |
/freezeweather | Stop or restart the automatic weather changes | Admin |
/blackout | Turn all city lights off or on | Admin |
Weather types: extrasunny, clear, neutral, smog, foggy, overcast, clouds, clearing, rain, thunder, snow, blizzard, snowlight, xmas, halloween.
Config options
At the top of [scripts]/[standalone]/mvx_scripts/modules/world_sync/vs_server.lua:
| Option | What it changes | Example |
|---|---|---|
DynamicWeather | true = the weather changes by itself | true |
CurrentWeather | Weather when the server starts | "EXTRASUNNY" |
Admin Quick Test
Setup
- Be
adminorowner. A second player helps to see that both of you get the same weather.
Weather
- Type
/weather rain. It starts raining at once for everyone. - Type
/weather thunder, then/weather foggy. Each one shows right away. - Type
/freezeweather. The weather stays as it is and stops changing by itself. Type it again to turn the automatic changes back on.
Time
- Type
/night. The clock jumps to 23:00 and it gets dark. - Type
/time 12 30. The clock shows 12:30. - Type
/freezetime. The clock stops. Type it again and it runs on (one game minute is 2 real seconds). - Type
/blackout. All city lights go off. Type it again to turn them on.
Back to normal
- Type
/weather extrasunnyand/morning. Sunny morning again.
If it doesn't work: "You do not have access to that command." → your rank is not admin or owner. /morning, /noon, /evening and /night only work in game chat; in the console use time 9 0.