vehicle virtual world , its possible?
#6

Quote:
Originally Posted by Ranama
Посмотреть сообщение
No... learn scripting it, just set the vehicleid and the virtual world you want them to go to in that function... It's not that hard.
Well, you can do one thing;

pawn Код:
// First define the number of vehicles you want to set the virtual world of..
#define NUM_VEH             (1) // since the numbers starts from 0 so 1 will be 2

// now declare a new GLOBAL variable at top to assign the created vehicles in..

new a_gVehicleSet[ NUM_VEH ]; // at top

// now in gamemodeinint or whereever your vehicles are, just do something like the following:

a_gVehicleSet[ 0 ] = AddStaticVehicle(418,2499.30004883,-1650.19995117,13.69999981,168.00000000,86,1); //Moonbeam
a_gVehicleSet[ 1 ] = AddStaticVehicle(483,2466.10009766,-1670.59997559,13.60000038,0.00000000,86,1); //Camper
// and so on... (add more.. )
and then

pawn Код:
// now when you want to set the virtual world of the vehicle, we will loop all the vehicles and set the virtual world for all of them at once.
for( new x = 0; x < NUM_VEH; x++ ) // in gamemode init?
{
                SetVehicleVirtualWorld( a_gVehicleSet[ x ], YOUR_WORLD_ID );
}
Reply


Messages In This Thread
vehicle virtual world , its possible? - by kesem140599 - 22.08.2012, 10:19
Re: vehicle virtual world , its possible? - by Ranama - 22.08.2012, 10:23
Re: vehicle virtual world , its possible? - by kesem140599 - 22.08.2012, 10:28
Re: vehicle virtual world , its possible? - by Ranama - 22.08.2012, 10:30
Re: vehicle virtual world , its possible? - by kesem140599 - 22.08.2012, 10:33
Re: vehicle virtual world , its possible? - by FalconX - 22.08.2012, 10:35
Re: vehicle virtual world , its possible? - by kesem140599 - 22.08.2012, 10:37
Re: vehicle virtual world , its possible? - by Ranama - 22.08.2012, 10:37
Re: vehicle virtual world , its possible? - by kesem140599 - 22.08.2012, 10:40
Re: vehicle virtual world , its possible? - by kesem140599 - 22.08.2012, 10:42

Forum Jump:


Users browsing this thread: 2 Guest(s)