Liberty Unleashed

Scripting => Script Help => Topic started by: [EG]~[S]aha~ on April 24, 2013, 05:33:38 am

Title: Help me with the race
Post by: [EG]~[S]aha~ on April 24, 2013, 05:33:38 am
Here's a script race with 2 areas like me to do more together ? well, that sphere ran away from me
function onPlayerCommand( pPlayer, szCommand, szText )
{
   if ( szCommand == "race" )
   {
      CreateSphere( Vector pos, 215.9, -921.5, 26.0 , Colour( 0, 0, 255 ) );
   }
   
   return 1;
}
function onPlayerEnterSphere( player, sphere )
{
sphere.Pos = Vector( 359.4, -920.6,  36.0 )

return 1;
}
Title: Re: Help me with the race
Post by: IdkanYavuk X on April 24, 2013, 05:36:25 am
I dont remember so well, but it is like this
Code: [Select]
sph <- "";
function onPlayerCommand( pPlayer, szCommand, szText )
{
   if ( szCommand == "race" )
   {
      sph = CreateSphere( Vector pos, 215.9, -921.5, 26.0 , Colour( 0, 0, 255 ) );
   }
   
   return 1;
}
function onPlayerEnterSphere( player, sphere )
{
sph.Pos = Vector( 359.4, -920.6,  36.0 )

return 1;
}
Title: Re: Help me with the race
Post by: [EG]~[S]aha~ on April 24, 2013, 09:20:37 am
no that's not it :(
Title: Re: Help me with the race
Post by: Mido_Pop on April 24, 2013, 09:46:53 pm
Man try This >

function onPlayerCommand( pPlayer, szCommand, szText )
{
   if ( szCommand == "race" )
   {
      CreateSphere( Vector( 215.9, -921.5,  26.0 ), Colour( 0, 0, 255 ) );
   }
   
   return 1;
}

function onPlayerEnterSphere( player, sphere )
{
 sphere.Pos = Vector( 359.4, -920.6,  36.0 );

return 1;
}
Title: Re: Help me with the race
Post by: [EG]~[S]aha~ on April 25, 2013, 07:13:19 am
don't get me wrong I don't need to fix the script I need to create one more spheres of how to do this ?
Title: Re: Help me with the race
Post by: Mido_Pop on April 25, 2013, 08:59:08 am
don't get me wrong I don't need to fix the script I need to create one more spheres of how to do this ?

!!! What Do You Mean ?????????
Title: Re: Help me with the race
Post by: [EG]~[S]aha~ on April 25, 2013, 10:41:04 am
so when you drive on the scope it disappeared and then another appeared in another place
Title: Re: Help me with the race
Post by: IdkanYavuk X on April 25, 2013, 05:12:29 pm
just local each sphere
Code: [Select]
sph1 <- CreateSphere( Vector pos, 215.9, -921.5, 26.0 , Colour( 0, 0, 255 ) );
sph2 <- CreateSphere( Vector pos, 234, -573, 26.0 , Colour( 0, 0, 255 ) );
sph3 <- CreateSphere( Vector pos, 231, -128, 26.0 , Colour( 0, 0, 255 ) );
sph4 <- CreateSphere( Vector pos, 641, -186, 26.0 , Colour( 0, 0, 255 ) );
sph5 <- CreateSphere( Vector pos, 236, -374, 26.0 , Colour( 0, 0, 255 ) );
Title: Re: Help me with the race
Post by: Mido_Pop on April 25, 2013, 06:32:12 pm
so when you drive on the scope it disappeared and then another appeared in another place

hhhhhhhh OH My God Man You Mean You Need The Race Script  :o

Sorry, Try To Do It By Your Self.