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