Squirrel/Server/Functions/Checkpoints/CreateCheckpoint
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page) |
Revision as of 00:37, 27 July 2010
Syntax
CreateCheckpoint( vector, radius )
Arguments
- x y z - The Vector where you want the checkpoint to be created.
- radius - The Radius of the checkpoint to be created.
Example
function onPlayerCommand( player, cmd, text ) { if ( cmd == "createcheckpoint" ) { local pos = player.Pos; CreateCheckpoint( Vector( pos.x, pos.y, pos.z ), 1 ); } }
This command will create a checkpoint at the player's location.
Notes
The call onPlayerCommand was used in in this example. More info about this in the corresponding page.