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
- Player player
- float speed –
speedseconds (float),fadeIntrue = fade in from the colour, false = out. - any fadeIn (optional) –
speedseconds (float),fadeIntrue = fade in from the colour, false = out. - float r (optional)
- float g (optional)
- float b (optional)
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.
Related pages
Section: Camera and audio (per player)
Categories: Server functions | Camera and audio (per player)