Liberty Unleashed
Scripting => Script Help => Topic started 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;
}
-
I dont remember so well, but it is like this
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;
}
-
no that's not it :(
-
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;
}
-
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 ?
-
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 ?????????
-
so when you drive on the scope it disappeared and then another appeared in another place
-
just local each sphere
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 ) );
-
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.