Scripting/Server/Functions/FadeCamera

Fades the screen. speed seconds (float), fadeIn true = fade in from the colour, false = out. Colour 0-255 each (default black).

Syntax

FadeCamera(player, speed [, fadeIn [, r [, g [, b]]]])

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "fadecamera" )
	{
		FadeCamera( player, 5.0 );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Camera and audio (per player)

Categories: Server functions | Camera and audio (per player)