Squirrel/Server/Functions/Checkpoints/Radius
From Liberty Unleashed Wiki
This Checkpoint class member returns or sets the radius of the given checkpoint.
Syntax
You can either return or set a new value for this member:
float Checkpoint.Radius
Checkpoint.Radius = float fRadius
Arguments
- fRadius - This is the new radius of the checkpoint.
Example 1. Returning
function onPlayerFootCheckpointHit( player, checkpoint ) { MessagePlayer( "The current radius of this checkpoint is: " + checkpoint.Radius, player ) }
Notes
This example will message the player with the current radius of the checkpoint.
Example 2. Setting
function onPlayerFootCheckpointHit( player, checkpoint ) { checkpoint.Radius = checkpoint.Radius ++; }
Notes
This example will increase the radius of the checkpoint by 1 every time a player enters it.