OnCheckpointEntered

From Vice City Multiplayer
Revision as of 10:04, 9 March 2016 by Doom Killer (talk | contribs) (Created page with "This is called when a player enters any checkpoint == Syntax == <pre>function onCheckpointEntered( player, checkpoint )</pre> == Arguments == * '''player''' - The pointer...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This is called when a player enters any checkpoint

Syntax

function onCheckpointEntered( player, checkpoint )

Arguments

  • player - The pointer of the new player
  • checkpoint - The pointer of the checkpoint

Example

function onCheckpointEntered( player, checkpoint )
{
    MessagePlayer( "You have entered a checkpoint! ID: " + checkpoint.ID, player );    
}

Notes

The functions MessagePlayer and Checkpoint.ID were used in this example. More info about them in corresponding pages.

Related Functions