FadeScreen
From NexusWiki
FadeScreen(level, time, endevent);
It fades in/out the screen. ‘level’=1 fade out, ‘level’=0 fade in, in ‘time’ seconds. If ‘endevent’ is not 0, than at the end of the fade out this event will be effected in the mission script. The fade out happens UNDER the GUI layer, so it is better if the GUI is hidden.