SetCinematicBorder

From Liberty Unleashed Wiki
Revision as of 02:45, 25 September 2010 by Juppi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

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

Syntax

SetCinematicBorder can take 2 different lists of parameters. These are:

  1. bool SetCinematicBorder( bool enabled )
  1. bool SetCinematicBorder( Player plr, bool enabled )

Arguments

  • enabled - true/false to enable/disable the cinematic border
  • plr - The player to enable/disable cinematic border for. If this argument is not used, the function will enable/disable the setting globally

Example

This will turn the cinematic view for all players on when someone types '/cinema'.

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "cinema" ) SetCinematicBorder( true );
  5. return 1;
  6. }
  7.  

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox