Scripting/Squirrel/Functions/Checkpoint.ID: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "ID is simple if you add some CheckPoints onScriptLoad() Like CreateCheckpoint(null, 0, Vector( 876.45, 432.54, 12.34 ), RGB( 255, 0, 255 ), 2); CreateCheckpoint(null, 0, Vec...")
 
No edit summary
Line 1: Line 1:
ID is simple if you add some CheckPoints onScriptLoad()
As the other functions of checkpoint Checkpoint.ID is also easy, but to do this u need something like:-
 
<pre>function onScriptLoad()
Like
{
 
CreateCheckpoint(null, 0, Vector( 876.45, 432.54, 12.34 ), RGB( 255, 0, 255 ), 2);
CreateCheckpoint(null, 0, Vector( 876.45, 432.54, 12.34 ), RGB( 255, 0, 255 ), 2);
CreateCheckpoint(null, 0, Vector( 765.43, 324.65, 14.54 ), RGB( 243, 67, 189 ), 2);
CreateCheckpoint(null, 0, Vector( 765.43, 324.65, 14.54 ), RGB( 243, 67, 189 ), 2);
 
}</pre>


In This now with ascending First Checkpoint is id 1 and second is id 2
In This now with ascending First Checkpoint is id 1 and second is id 2

Revision as of 19:01, 21 August 2015

As the other functions of checkpoint Checkpoint.ID is also easy, but to do this u need something like:-

function onScriptLoad()
{
CreateCheckpoint(null, 0, Vector( 876.45, 432.54, 12.34 ), RGB( 255, 0, 255 ), 2);
CreateCheckpoint(null, 0, Vector( 765.43, 324.65, 14.54 ), RGB( 243, 67, 189 ), 2);
}

In This now with ascending First Checkpoint is id 1 and second is id 2


By VCMP Team