Squirrel/Server/Functions/Camera/SetCinematicBorder

From Liberty Unleashed Wiki
Revision as of 18:11, 24 September 2010 by Force (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" ) SetCinematicBorder( 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