onClientEnterCheckpoint

From Liberty Unleashed Wiki
Revision as of 02:18, 2 August 2011 by Stormeus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This event is called when the local player enters a checkpoint

Syntax

  1. function onClientEnterCheckpoint( checkpoint )

Arguments

  • checkpoint - The pointer of the checkpoint entered

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.  

Notes

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

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox