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;
}