Scripting/Client/Functions/FadeCamera
fadeIn is an integer: 1 (default) fades the screen in, 0 fades out. The colour is used only when all three of r, g, b are given.
Syntax
FadeCamera(speedSeconds [, fadeIn [, r, g, b]])Arguments
- any speedSeconds
- any fadeIn (optional) –
fadeInis an integer: 1 (default) fades the screen in, 0 fades out. - float r (optional)
- float g (optional)
- float b (optional)
Example
function onScriptLoad()
{
FadeCamera( 0 );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- GetScreenWidth
- WorldPosToScreen
- ScreenPosToWorld
- GetGroundZLevel
- GetGroundZLevelForPos
- GetGroundZLevelForPosLoad
- Draw3DText
- Draw3DSprite
- Draw3DTextWorld
- Draw3DSpriteWorld
- SetCameraMatrix
- SetCameraTarget
Section: Screen, world and camera
Categories: Client functions | Screen, world and camera