Squirrel/Server/Functions/Camera/SetCinematicBorder
From Liberty Unleashed Wiki
This function will activate/deactive the cinematic border (widescreen effect).
Syntax
bool SetCinematicBorder( bool enabled )
Arguments
- enabled - true/false to enable/disable the cinematic border
Example
This will turn the cinematic view for all players on when someone types '/cinema'. function onPlayerCommand( player, command, text ) { if ( command == "cinema" ) SetCinematicBorder( true ); }
Notes
The event onPlayerCommand was used in in this example. More info about it in the corresponding page.
Related Functions
- FadeCamera
- GetCinematicBorder
- RestoreCamera
- ShakeCamera
- SetCameraMatrix
- SetCinematicBorder