Difference between revisions of "MDE Scripting: GetCurrentWeatherSetName"
From Nomad DB
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Page_MDE}} | ||
{| class="wikitable" | {| class="wikitable" | ||
!Syntax | !Syntax | ||
Line 18: | Line 19: | ||
Use [[MDE Scripting: SetWeatherSet|SetWeatherSet]] to change the weather set. | Use [[MDE Scripting: SetWeatherSet|SetWeatherSet]] to change the weather set. | ||
+ | |||
==Returns== | ==Returns== | ||
− | {| class="wikitable" width="100% | + | {| class="wikitable" width="100%" |
!# | !# | ||
!Type | !Type | ||
!Description | !Description | ||
|- | |- | ||
− | |1 | + | | style="font-weight: bold; text-align:center;" | 1 |
|string | |string | ||
|The current [[MDE Scripting: Weather Sets|Weather Set]]. | |The current [[MDE Scripting: Weather Sets|Weather Set]]. | ||
|} | |} | ||
+ | |||
==Examples== | ==Examples== |
Latest revision as of 20:27, 27 October 2020
Syntax | game.gfx:GetCurrentWeatherSetName()
|
---|---|
Module | GFX |
Library | Game |
Game | Mafia: Definitive Edition |
Description
Get the current Weather Set.
Use SetWeatherSet to change the weather set.
Returns
# | Type | Description |
---|---|---|
1 | string | The current Weather Set. |
Examples
local currentWeatherSetName = game.gfx:GetCurrentWeatherSetName() -- currentWeatherSetName returns "_default_game"