Squirrel/Server/Functions/Camera/GetCinematicBorder

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
Line 11: Line 11:
 
function onPlayerCommand( player, command, text )
 
function onPlayerCommand( player, command, text )
 
{
 
{
    if ( command == "cinema" ) MessagePlayer( "Cinematic border is currently set to " + GetCinematicBorder(), player );
+
if ( command == "cinema" ) MessagePlayer( "Cinematic border is currently set to " + GetCinematicBorder(), player );
 
}
 
}
 
</code>
 
</code>

Revision as of 01:57, 7 January 2010

This function will return a boolean value of either true or false.

Syntax

GetCinematicBorder does not require any parameters.

Example

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "cinema" ) MessagePlayer( "Cinematic border is currently set to " + GetCinematicBorder(), player );
  5. }
  6.  

Notes

This is useful for checking that the cinematic border isn't already active before setting it to true.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox