Squirrel/Server/Functions/Checkpoints/CreateCheckpoint

From Liberty Unleashed Wiki
Revision as of 00:37, 27 July 2010 by Stoku (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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