SetWeather: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
Line 2: Line 2:


{{CSharpContainer|
{{CSharpContainer|
==Syntax==
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetWeather(string weather);}}
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetWeather(string weather);}}
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetWeather(Weather weather);}}
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetWeather(Weather weather);}}

Latest revision as of 21:00, 27 November 2019

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);
}