Squirrel/Server/Functions/Camera/GetCinematicBorder
From Liberty Unleashed Wiki
(Difference between revisions)
Line 8: | Line 8: | ||
== Example == | == Example == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | |||
function onPlayerCommand( player, command, text ) | function onPlayerCommand( player, command, text ) | ||
{ | { | ||
− | + | if ( command == "cinema" ) MessagePlayer( "Cinematic border is currently set to " + GetCinematicBorder(), player ); | |
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | |||
</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
function onPlayerCommand( player, command, text ) { if ( command == "cinema" ) MessagePlayer( "Cinematic border is currently set to " + GetCinematicBorder(), player ); }
Notes
GetCinematicBorder will return a boolean value of either true or false.
Related Functions
- FadeCamera
- GetCinematicBorder
- RestoreCamera
- ShakeCamera
- SetCameraMatrix
- SetCinematicBorder