Checkpoint.ID

From Liberty Unleashed Wiki
Revision as of 19:47, 24 September 2010 by Juppi (Talk | contribs)

Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This Checkpoint class member returns the ID of the checkpoint.

Syntax

  1. int Checkpoint.ID

Arguments

  • none

Example

This example will message the player with the current ID of the checkpoint.

  1.  
  2. function onPlayerEnterCheckpoint( player, checkpoint )
  3. {
  4. MessagePlayer( "The current id of this checkpoint is: " + checkpoint.ID, player );
  5. return 1;
  6. }
  7.  

Notes

The function MessagePlayer and event onPlayerEnterCheckpoint were used in in this example. More info about them in the corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox