Scripting/Server/Functions/CreateClientCheckpoint

Same, but only that player sees it and only they trigger it. The player is the last argument. A player can have any number of these. Throws a script error if the player is invalid or no slots remain.

Syntax

CreateClientCheckpoint(pos, radius [, colour], player)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "createclientcheckpoint" )
	{
		CreateClientCheckpoint( player.Pos, 5.0 );
	}
}

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

Section: Creating world entities

Categories: Server functions | Creating world entities