Scripting/Squirrel/Functions/Checkpoint.Remove

From Vice City Multiplayer
Revision as of 20:18, 23 April 2016 by Pun1sh3r (talk | contribs)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This function removes a checkpoint.

Syntax

Checkpoint.Remove

Example

function onScriptLoad()
{
	CheckpointGreen <- CreateCheckpoint( null, 0, Vector( -378.79, -537.962, 17.2832 ), RGB(255, 0, 255), 2);
	CheckpointWhite <- CreateCheckpoint( null, 0, Vector( 876.45, 432.54, 12.34 ), RGB(255, 255, 255), 2);
	return 1;
}

function onScriptUnload()
{
	CheckpointGreen.Remove();
	CheckpointWhite.Remove();
	return 1;
}

Notes

Call onScriptLoad and onScriptUnload were used in this example. More info about them in the corresponding pages.

Related Functions