Scripting/Squirrel/Functions/Checkpoint.Color: 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
No edit summary
No edit summary
Line 1: Line 1:
Checkpoint.Color is easy if u create a checkpoint with array like this
== Syntax ==
<pre>Checkpoint.Color</pre>


<pre>function onScriptLoad()
== Arguments ==
{
RGB value
checkpoint <- CreateCheckpoint(null, 0, Vector( 132.42, 674.34, 12.6543 ), RGB( 255, 0,255 ), 2);
}</pre>
 
then its easy to change color
 
 
Example


== Headline text ==
== Example ==


<pre>function onPlayerSpawn( player )
<pre>function onPlayerSpawn( player )
{
{
checkpoint.Color = 1;
FindCheckpoint(0).Color = RGB(255,255,255);
player.Pos = Vector( 132.42, 674.34, 12.6543 );
player.Pos = Vector( 132.42, 674.34, 12.6543 );
}</pre>
}</pre>

Revision as of 08:26, 24 February 2016

Syntax

Checkpoint.Color

Arguments

RGB value

Example

function onPlayerSpawn( player )
{
FindCheckpoint(0).Color = RGB(255,255,255);
player.Pos = Vector( 132.42, 674.34, 12.6543 );
}


By VCMP Team