Squirrel/Server/Functions/Camera/SetCinematicBorder

From Liberty Unleashed Wiki
Revision as of 16:56, 7 January 2010 by Juppi (Talk | contribs)

Jump to: navigation, search

This function will activate/deactive the cinematic border (widescreen effect).

Syntax

  1. bool SetCinematicBorder( bool enabled )

Arguments

  • enabled - true/false to enable/disable the cinematic border

Example

  1.  
  2.  
  3. This will turn the cinematic view for all players on when someone types '/cinema'.
  4.  
  5. function onPlayerCommand( player, command, text )
  6. {
  7. if ( command == "cinema" ) SetCinematicView( true );
  8. }
  9.  

Notes

The event onPlayerCommand was used in in this example. More info about it in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox