onClientEnterCheckpoint

From Liberty Unleashed Wiki
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