Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


  Show Posts
Pages: [1]
1  Scripting / Script Help / How to do many spheres? Pls help on: March 11, 2011, 10:15:55 pm
I want to do more than one sphere... but all are teleport player to the one point.. i fink need to set sphere.id or "if sphere.pos".. and then they will teleport to the needed coordinates.. but it is too hard to get it by myself.. can help me anyone with it?

example

function onScriptLoad()
{
   CreateSphere( Vector ( 89.51, -1548.7, 28.34 ), 3.00, Colour( 0, 0, 255 ) )
        CreateSphere( Vector ( 351.501, -328.052, 173.163 ), 3.00, Colour( 0, 0, 255 ) )

   return 1;  
}


function onPlayerEnterSphere( pPlayer, sphere )
{      
   if (Sphere.Pos = Vector ( 89.51, -1548.7, 28.34 ))
   {
       pPlayer.Pos = Vector( 116.93, -1545.4, 244.58 )
   }

   if (Sphere.Pos = Vector ( 351.501, -328.052, 173.163 ))
   {
       pPlayer.Pos = Vector( 374.1, -327.9, 173.16 );
   }

   return 1;
}
Pages: [1]
© Liberty Unleashed Team.