Difference between revisions of "MDE Scripting: SetWeatherSet"

From Nomad DB
(Created page with "{| class="wikitable" !Syntax |<syntaxhighlight lang="lua">game.gfx:SetWeatherSet(string weatherSetName, number unk2, number unk3)</syntaxhighlight> |- !Module |MDE Scripting...")
 
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
{{Page_MDE}}
 
{| class="wikitable"
 
{| class="wikitable"
 
!Syntax
 
!Syntax
Line 7: Line 8:
 
|-
 
|-
 
!Library
 
!Library
|[[MDE Scripting: Game_Library|Game]]
+
|[[MDE Scripting: Game Library|Game]]
 
|-
 
|-
 
!Game
 
!Game
|[[MDE_Scripting|Mafia: Definitive Edition]]
+
|[[MDE Scripting|Mafia: Definitive Edition]]
 
|}
 
|}
 
  
  
Line 18: Line 18:
 
Set the [[MDE Scripting: Weather Sets|Weather Set]] you want.
 
Set the [[MDE Scripting: Weather Sets|Weather Set]] you want.
  
 +
Use [[MDE Scripting: GetCurrentWeatherSetName|GetCurrentWeatherSetName]] to get the current weather set.
  
  
Line 38: Line 39:
 
|Unknown. You can use 0.
 
|Unknown. You can use 0.
 
|}
 
|}
 
  
  
 
==Returns==
 
==Returns==
 
Returns nothing.
 
Returns nothing.
 
  
  
 
==Examples==
 
==Examples==
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
game.gfx:SetWeatherSet("_default_game", 0, 0) -- will set the weather set as ''_default_game''
+
game.gfx:SetWeatherSet("_default_game", 0, 0) -- sets the weather set as "_default_game"
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 20:28, 27 October 2020

Syntax
game.gfx:SetWeatherSet(string weatherSetName, number unk2, number unk3)
Module GFX
Library Game
Game Mafia: Definitive Edition


Description

Set the Weather Set you want.

Use GetCurrentWeatherSetName to get the current weather set.


Parameters

Name Type Description
weatherSetName string Find weather set name here : Weather Sets
unk2 number Unknown. You can use 0.
unk3 number Unknown. You can use 0.


Returns

Returns nothing.


Examples

game.gfx:SetWeatherSet("_default_game", 0, 0) -- sets the weather set as "_default_game"