onPlayerEnterCheckpoint
From Liberty Unleashed Wiki
This event is called when a player enters a checkpoint.
Syntax
function onPlayerEnterCheckpoint( Player plr, Checkpoint cp )
Arguments
- plr - The player who entered the checkpoint
- cp - The checkpoint the player entered
Returns
This event does not handle return values.
Example
This example will remove the checkpoint after a player has entered it.
function onPlayerEnterCheckpoint( player, cp ) { cp.Remove(); return 1; }
Notes
The function Checkpoint.Remove was used in this example. More info about this in the corresponding page.
Related Events
- onPlayerEnterCheckpoint
- onPlayerExitCheckpoint
- onPlayerEnterSphere
- onPlayerExitSphere