Scripting/Server/Functions/FindCheckpoint

Checkpoint handle or null (spheres are not returned). With the optional player, a player-only checkpoint is returned only if it belongs to that player.

Syntax

FindCheckpoint(id [, player])

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "findcheckpoint" )
	{
		FindCheckpoint( 0 );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Creating world entities

Categories: Server functions | Creating world entities