Difference between revisions of "MDE Scripting: FaderFadeOut"
From Nomad DB
Line 48: | Line 48: | ||
== Examples == | == Examples == | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
− | game.hud:FaderFadeOut(3000) -- Fade-out during 3 seconds | + | local so = game.hud:FaderFadeOut(3000) -- Fade-out during 3 seconds |
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 02:25, 20 November 2020
Syntax | game.hud:FaderFadeOut(number duration)
|
---|---|
Module | HUD |
Library | Game |
Game | Mafia: Definitive Edition |
Description
Fade-out effect (from image to black)
See FaderFadeIn for fade-in effect.
Parameters
Name | Type | Description |
---|---|---|
duration | number | Time in milliseconds |
Returns
# | Type | Description |
---|---|---|
1 | C_SyncObject | Sync Object |
Examples
local so = game.hud:FaderFadeOut(3000) -- Fade-out during 3 seconds