Squirrel/Client/Events/Checkpoint/onClientEnterCheckpoint

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|onClientEnterCheckpoint}} This event is called when the local player enters a checkpoint == Syntax == <code>function onClientEnterCheckpoint( checkpoint )</cod…')
 
(Example added)
 
Line 12: Line 12:
 
== Example ==
 
== Example ==
  
Some explanation here
+
This code will message the player with the ID of the checkpoint.
{{Squirrel/NeedsExample}}
+
  
 
<code lang="squirrel">
 
<code lang="squirrel">
-- todo
+
function onClientEnterCheckpoint( checkpoint )
 +
{
 +
    Message("You have entered 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 about it in its corresponding page.
  
 
== Related Events ==
 
== Related Events ==

Latest revision as of 02:18, 2 August 2011

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

This event is called when the local player enters a checkpoint

[edit] Syntax

  1. function onClientEnterCheckpoint( checkpoint )

[edit] Arguments

  • checkpoint - The pointer of the checkpoint entered

[edit] Example

This code will message the player with the ID of the checkpoint.

  1.  
  2. function onClientEnterCheckpoint( checkpoint )
  3. {
  4. Message("You have entered checkpoint " + checkpoint.ID);
  5. }
  6.  

[edit] Notes

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

[edit] Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox