Squirrel/Server/Functions/Camera/GetCinematicBorder

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ This function moves the player's camera to the given position. == Syntax == ''GetCinematicBorder'' does not require any parameters. == Example == {{Squirrel/NeedsExample}} <c...)
 
Line 10: Line 10:
 
{{Squirrel/NeedsExample}}
 
{{Squirrel/NeedsExample}}
 
<code lang="squirrel">
 
<code lang="squirrel">
 +
<pre>
 
function onPlayerCommand( player, command, text )
 
function onPlayerCommand( player, command, text )
 
{
 
{
Line 17: Line 18:
 
&#09;}
 
&#09;}
 
}
 
}
 +
</pre>
 
</code>
 
</code>
  

Revision as of 01:53, 7 January 2010

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

Syntax

GetCinematicBorder does not require any parameters.

Example

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
  1.  
  2. <pre>
  3. function onPlayerCommand( player, command, text )
  4. {
  5. &#09;if ( command == "cinema" )
  6. &#09;{
  7. &#09;&#09;MessagePlayer( "Cinematic border is currently set to " + GetCinematicBorder(), player );
  8. &#09;}
  9. }
  10. </pre>
  11.  

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox