Squirrel/Server/Functions/Checkpoints/Type
From Liberty Unleashed Wiki
This Checkpoint class member returns or sets the type of the checkpoint. Checkpoint type means how it can be hit (on foot, using a vehicle...). Defaults to MARKER_TYPE_BOTH.
Syntax
You can either return or set a new value using this member:
int Checkpoint.Type
Checkpoint.Type = int type
Arguments
- type - This is ID of the new type.
Example 1. Returning
function onPlayerFootCheckpointHit( player, checkpoint ) { MessagePlayer( "The current checkpoint type for this checkpoint is: " + checkpoint.Type, player ); }
Notes
This example will message the player with the type ID for that checkpoint.
Example 2. Setting
function onPlayerFootCheckpointHit( player, checkpoint ) { checkpoint.Type = 2; }
Notes
This example will change the type of checkpoint to ID 2 when a player enters it.