Scripting/Squirrel/Functions/CreateCheckpoint

From Vice City Multiplayer
Revision as of 04:56, 28 July 2015 by 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)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

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 sphere to. If player is null it will be shown to everyone int world - The world id Vector pos - The sphere position cRGB rgb - The sphere color int radius - The diameter of the sphere Example

The following example will create a sphere

function onPlayerCommand( player, cmd, text ); {

if ( cmd == "sph" )
{
 CreateSphere( player, player.World, player.Pos, RGB(255, 0, 255), 2);
}

}


System By Bryan_Fury