Posts: 298
Threads: 46
Joined: Mar 2011
Reputation:
0
ok hello today I wanted to add a train to ls train station but I dont know how to get the streak train cars to stay with it when I drive train the train cars dont follow what can I do to fix this? or get it working I dont know how to script it
I do not no what to do because you cant attach it with mta then copy it over
Posts: 298
Threads: 46
Joined: Mar 2011
Reputation:
0
how many trailers could I attach? I need 4
Posts: 298
Threads: 46
Joined: Mar 2011
Reputation:
0
and how would I combine it was ad vehicle stats
Posts: 160
Threads: 0
Joined: Jun 2012
Reputation:
0
new Batz,TBatz,BBatz;
public OnGameModeInit()
{
Batz = AddStaticVehicle(Train info);
TBatz = AddStaticVehicle(1st trailer);
BBatz = AddStaticVehicle(2nd one);
}
public OnVehicleStreamIn(vehicleid,forplayerid)
{
if(vehicleid==Batz||vehicleid==BBatz||vehicleid==T Batz) AttachTrailerToVehicle(BBatz,Batz),AttachTrailerTo Vehicle(TBatz,BBatz);
return 1;
}
Posts: 298
Threads: 46
Joined: Mar 2011
Reputation:
0
where it says train info is that where I put the id?
Posts: 298
Threads: 46
Joined: Mar 2011
Reputation:
0
how do I add more then 2 trailers do I put tbatz again??