Scripting/Server/Functions/SetVirtualWorldWeather
(v0.3.1+) Weather for one virtual world only (weatherid -1 removes the override). SetWeather applies to every world again and drops all per-world weather.
Syntax
SetVirtualWorldWeather(worldid, weatherid)Arguments
- int worldid
- int weatherid
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "setvirtualworldweather" )
{
SetVirtualWorldWeather( 0, 0 );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- ToggleRealMoney
- SetTime
- SetTimeLock
- SetTimeScale
- SetWeatherLock
- GetTime
- SetWeather
- SetVirtualWorldTime
- SetGamespeed
- SetGravity
- ToggleImprovedCarCam
- SetPlayerBlipStyle
Section: World settings
Categories: Server functions | World settings