Scripting/Squirrel/Functions/Checkpoint.Pos: 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 "Checkpoint.Pos is very easy first u need. to give name to checkpoint function onScriptLoad() { array <- CreateCheckpoint(null, 0, Vector( 132.42, 674.34, 12.6543 ), RGB( 255...")
 
No edit summary
Line 1: Line 1:
Checkpoint.Pos is very easy first u need. to give name to checkpoint
As the other checkpoint functions, You need to give a name to the checkpoint or else, it can't define itself




function onScriptLoad() { array <- CreateCheckpoint(null, 0, Vector( 132.42, 674.34, 12.6543 ), RGB( 255, 0,255 ), 2); }
<pre>function onScriptLoad()
{
array <- CreateCheckpoint(null, 0, Vector( 132.42, 674.34, 12.6543 ), RGB( 255, 0,255 ), 2);  
}</pre>


now give him another pos like
Now You can set its position to other places in different events.
== For example ==


function onPlayerJoin( player )
<pre>function onPlayerJoin( player )
{
{
array.Pos = Vector( 564.75, 454.98, 15.65 );
array.Pos = Vector( 564.75, 454.98, 15.65 );
}
}</pre>




By VCMP Team
By VCMP Team

Revision as of 19:05, 21 August 2015

As the other checkpoint functions, You need to give a name to the checkpoint or else, it can't define itself


function onScriptLoad()
{
 array <- CreateCheckpoint(null, 0, Vector( 132.42, 674.34, 12.6543 ), RGB( 255, 0,255 ), 2); 
}

Now You can set its position to other places in different events.

For example

function onPlayerJoin( player )
{
array.Pos = Vector( 564.75, 454.98, 15.65 );
}


By VCMP Team