Scripting/Squirrel/Functions/Checkpoint.Radius: 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.Radius is very easy first u need. to give name to checkpoint
Checkpoint.Radius : By using this function, You can set the radius of the checkpoint, that means how big the checkpoint will be.
To do it, 1st of all, u need to give it a name


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


Then you may set it radius to differnt types
Now let's see


now give him another radius like


 
<pre>function onPlayerJoin( player )  
function onPlayerJoin( player )  
{  
{  
if ( GetPlayers() >=3 )
{
array.Radius = 2;  
array.Radius = 2;  
}
}
}</pre>




By VCMP Team
By VCMP Team

Revision as of 19:11, 21 August 2015

Checkpoint.Radius : By using this function, You can set the radius of the checkpoint, that means how big the checkpoint will be. To do it, 1st of all, u need to give it a name

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

Then you may set it radius to differnt types Now let's see


function onPlayerJoin( player ) 
{ 
if ( GetPlayers() >=3 )
{
array.Radius = 2; 
}
}


By VCMP Team