Scripting/Squirrel/Functions/CreateCheckpoint: 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 "CreateCheckpoint is the code for Create A CheckPoint it is Used in Racing Following Code is used for creating a checkoint CreateCheckpoint(player, world, pos, ARGB, radius)...") |
BrYaN FuRy (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
Player | null player - The player to stream this | Player | null player - The player to stream this checkpoint to. If player is null it will be shown to everyone | ||
int world - The world id | int world - The world id | ||
Vector pos - The | Vector pos - The checkpoint position | ||
cRGB rgb - The | cRGB rgb - The checkpoint color | ||
int radius - The diameter of the | int radius - The diameter of the checkoint | ||
Example | Example | ||
The following example will create a | The following example will create a checkpoint | ||
function onPlayerCommand( player, cmd, text ); | function onPlayerCommand( player, cmd, text ); | ||
{ | { | ||
if ( cmd == " | if ( cmd == "createcheckpoint" ) | ||
{ | { | ||
CreateCheckpoint( null, 0, player.Pos, RGB(255, 0, 255), 2); | |||
} | } | ||
} | } | ||
By Bryan_Fury | |||
System By Bryan_Fury | System By Bryan_Fury |
Revision as of 05:00, 28 July 2015
CreateCheckpoint is the code for Create A CheckPoint it is Used in Racing
Following Code is used for creating a checkoint
CreateCheckpoint(player, world, pos, ARGB, radius);
Player | null player - The player to stream this checkpoint to. If player is null it will be shown to everyone
int world - The world id
Vector pos - The checkpoint position
cRGB rgb - The checkpoint color
int radius - The diameter of the checkoint
Example
The following example will create a checkpoint
function onPlayerCommand( player, cmd, text ); {
if ( cmd == "createcheckpoint" ) { CreateCheckpoint( null, 0, player.Pos, RGB(255, 0, 255), 2); }
}
By Bryan_Fury
System By Bryan_Fury