Squirrel/Client/Events/Checkpoint/onClientExitCheckpoint

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|onClientExitCheckpoint}} This event is called when the local player exits a checkpoint == Syntax == <code>function onClientExitCheckpoint( checkpoint )</code> …')
 
(Added example)
 
Line 12: Line 12:
 
== Example ==
 
== Example ==
  
Some explanation here
+
This code messages the player telling them they left a checkpoint.
{{Squirrel/NeedsExample}}
+
  
 
<code lang="squirrel">
 
<code lang="squirrel">
-- todo
+
function onClientExitCheckpoint( checkpoint )
 +
{
 +
    Message("You just left checkpoint " + checkpoint.ID);
 +
}
 
</code>
 
</code>
  
 
=== Notes ===
 
=== Notes ===
  
-- List of used functions and other notes here.
+
The function [[Squirrel/Client/Functions/Messages/Message|Message]] was used in this example. More info in its corresponding page.
  
 
== Related Events ==
 
== Related Events ==

Latest revision as of 02:37, 2 August 2011

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This event is called when the local player exits a checkpoint

[edit] Syntax

  1. function onClientExitCheckpoint( checkpoint )

[edit] Arguments

  • checkpoint - The pointer of the checkpoint exited

[edit] Example

This code messages the player telling them they left a checkpoint.

  1.  
  2. function onClientExitCheckpoint( checkpoint )
  3. {
  4. Message("You just left checkpoint " + checkpoint.ID);
  5. }
  6.  

[edit] Notes

The function Message was used in this example. More info in its corresponding page.

[edit] Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox