Squirrel/Client/Functions/Camera/FadeCamera
From Liberty Unleashed Wiki
(Difference between revisions)
(This function fades the camera of the client. You are also able to set the colour.) |
(→Syntax) |
||
Line 1: | Line 1: | ||
+ | This function fades the camera of the local client, giving you the possibility to change the colour. | ||
+ | |||
== Syntax == | == Syntax == | ||
Latest revision as of 11:38, 27 July 2012
This function fades the camera of the local client, giving you the possibility to change the colour.
[edit] Syntax
FadeCamera can take 3 different lists of parameters. These are:
bool FadeCamera( float speed, bool fadeIn )
bool FadeCamera( float speed, bool fadeIn, Colour col )
bool FadeCamera( float speed, bool fadeIn, int r, int g, int b )
[edit] Arguments
- speed - The fading speed. The higher the value, the slower the fade
- fadeIn - A boolean representing whether the camera should be faded in or out
- col - A pointer to a predefined colour object to set the fade colour
- r, g, b - Integer values for the fading colours - red, green, blue. Values range from 0 to 255