Squirrel/Server/Functions/Camera/RestoreCamera

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ This function restores the camera for the given player. == Syntax == <code>bool RestoreCamera( Player plr )</code> == Arguments == * '''plr''' - This is the pointer of the pl...)
 
(Example)
Line 13: Line 13:
  
 
{{Squirrel/NeedsExample}}
 
{{Squirrel/NeedsExample}}
<code lang="squirrel">
+
function onPlayerCommand( player, command, text )
-- todo
+
{
 +
if ( command == "restorecamera" ) RestoreCamera( player );
 +
}
 
</code>
 
</code>
  
 
=== Notes ===
 
=== Notes ===
  
-- Example notes here
+
The ''RestoreCamera'' function is used to restore the players camera if it has been moved around.
  
 
== Related Functions ==
 
== Related Functions ==
  
 
{{Squirrel/Server/Functions/Camera}}
 
{{Squirrel/Server/Functions/Camera}}

Revision as of 02:08, 7 January 2010

This function restores the camera for the given player.

Syntax

  1. bool RestoreCamera( Player plr )

Arguments

  • plr - This is the pointer of the player to whom the camera will be restored

Example

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o

function onPlayerCommand( player, command, text ) { if ( command == "restorecamera" ) RestoreCamera( player ); } </code>

Notes

The RestoreCamera function is used to restore the players camera if it has been moved around.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox