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
No edit summary
No edit summary
Line 1: Line 1:
As the other checkpoint functions, You need to give a name to the checkpoint or else, it can't define itself
As the other checkpoint functions, You need to create a checkpoint




Line 16: Line 16:




By VCMP Team
By someone

Revision as of 08:21, 24 February 2016

As the other checkpoint functions, You need to create a checkpoint


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 someone