Squirrel/Server/Functions/Camera/SetCinematicBorder

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
Line 18: Line 18:
 
function onPlayerCommand( player, command, text )
 
function onPlayerCommand( player, command, text )
 
{
 
{
if ( command == "cinema" ) SetCinematicView( true );
+
if ( command == "cinema" ) SetCinematicBorder( true );
 
}
 
}
 
</code>
 
</code>

Revision as of 18:11, 24 September 2010

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