OnCheckpointExited: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This is called when a player exits any checkpoint == Syntax == <pre>function onCheckpointExited( player, checkpoint )</pre> == Arguments == * '''player''' - The pointer of...")
 
No edit summary
 
Line 27: Line 27:


{{Scripting/Squirrel/Events/Checkpoint_Events}}
{{Scripting/Squirrel/Events/Checkpoint_Events}}
[[Category:Scripting/Squirrel/Events/Checkpoint_Events]]

Latest revision as of 22:11, 30 January 2017

This is called when a player exits any checkpoint

Syntax

function onCheckpointExited( player, checkpoint )

Arguments

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

Example

function onCheckpointExited( player, checkpoint )
{
    MessagePlayer( "You have exited 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