Squirrel/Server/Functions/Checkpoints/CreateCheckpoint

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page)

Revision as of 00:37, 27 July 2010

Syntax

  1. 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

  1.  
  2. function onPlayerCommand( player, cmd, text )
  3. {
  4. if ( cmd == "createcheckpoint" )
  5. {
  6. local pos = player.Pos;
  7. CreateCheckpoint( Vector( pos.x, pos.y, pos.z ), 1 );
  8. }
  9. }
  10.  

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.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox