Scripting/Squirrel/Functions/Checkpoint.ID: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
BrYaN FuRy (talk | contribs) (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...") |
Decent 946 (talk | contribs) No edit summary |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
ID | This function gets the checkpoint ID. | ||
== Syntax == | |||
<pre>Checkpoint.ID</pre> | |||
== Example == | |||
<source lang="squirrel"> | |||
function onScriptLoad() | |||
{ | |||
CheckpointGreen <- CreateCheckpoint( null, 0, false, Vector( -378.79, -537.962, 17.2832 ), RGB(255, 0, 255), 2); | |||
CheckpointWhite <- CreateCheckpoint( null, 0, true, Vector( 876.45, 432.54, 12.34 ), RGB(255, 255, 255), 2); | |||
print("CheckpointGreen ID: " + CheckpointGreen.ID); | |||
print("CheckpointWhite ID: " + CheckpointWhite.ID); | |||
return 1; | |||
} | |||
</source> | |||
=== Notes === | |||
Call [[onScriptLoad]] was used in this example. More info about them in the corresponding pages. | |||
== Related Functions == | |||
{{Scripting/Squirrel/Functions/Checkpoint_Functions}} | |||
[[Category:Scripting/Squirrel/Functions/Checkpoint_Functions]] |
Latest revision as of 17:05, 3 August 2017
This function gets the checkpoint ID.
Syntax
Checkpoint.ID
Example
function onScriptLoad()
{
CheckpointGreen <- CreateCheckpoint( null, 0, false, Vector( -378.79, -537.962, 17.2832 ), RGB(255, 0, 255), 2);
CheckpointWhite <- CreateCheckpoint( null, 0, true, Vector( 876.45, 432.54, 12.34 ), RGB(255, 255, 255), 2);
print("CheckpointGreen ID: " + CheckpointGreen.ID);
print("CheckpointWhite ID: " + CheckpointWhite.ID);
return 1;
}
Notes
Call onScriptLoad was used in this example. More info about them in the corresponding pages.