Checkpoint.Owner
From Liberty Unleashed Wiki
This Checkpoint class member returns the owner of the checkpoint or null if the checkpoint is a global one.
Syntax
Player Checkpoint.Owner
Arguments
- none
Example
This example will message the player whether the checkpoint they entered is a local or global one.
function onPlayerEnterCheckpoint( player, checkpoint ) { MessagePlayer( "This checkpoint is a " + ( checkpoint.Owner ? "local" : "global" ) + " checkpoint.", player ); return 1; }
Notes
The function MessagePlayer and event onPlayerEnterCheckpoint were used in in this example. More info about them in the corresponding pages.