SetWeather

From RAGE Multiplayer Wiki
Revision as of 21:00, 27 November 2019 by Avoid (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sets the weather.


C# Syntax

void NAPI.World.SetWeather(string weather);
void NAPI.World.SetWeather(Weather weather);

Parameters

  • weather: parameter input should be in string or Weather type

Example

[Command("clrweather", Description = "Clears the weather")]
public void Clear_Weather(Client player)
{
    NAPI.World.SetWeather(Weather.CLEAR);
}