Squirrel/Server/Functions/Camera/GetCinematicBorder

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
 
== Example ==
 
== Example ==
  
{{Squirrel/NeedsExample}}
 
 
<code lang="squirrel">
 
<code lang="squirrel">
<pre>
 
 
function onPlayerCommand( player, command, text )
 
function onPlayerCommand( player, command, text )
 
{
 
{
&#09;if ( command == "cinema" )
+
    if ( command == "cinema" ) MessagePlayer( "Cinematic border is currently set to " + GetCinematicBorder(), player );
&#09;{
+
&#09;&#09;MessagePlayer( "Cinematic border is currently set to " + GetCinematicBorder(), player );
+
&#09;}
+
 
}
 
}
</pre>
 
 
</code>
 
</code>
  

Revision as of 01:55, 7 January 2010

This function moves the player's camera to the given position.

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

GetCinematicBorder will return a boolean value of either true or false.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox