03.04.2009, 18:01
Hi!
I need ur help. I'm working on a race system. I want to make a "Roadtrain Race", where U get in a Roadtrain and there is a trailer, which attached to the truck. I'm using AttachTrailerToVehicle command.
Code:
It sets the trailer's position behind the truck but it doesn't attach it. If the count down went down I allow players to move(TogglePlayerControllable(Racers[e][pID], true)) and if I wait 4-5 secs the trailer will be attached, and it moves with the truck.
Thanx for ur help!
I need ur help. I'm working on a race system. I want to make a "Roadtrain Race", where U get in a Roadtrain and there is a trailer, which attached to the truck. I'm using AttachTrailerToVehicle command.
Code:
pawn Код:
Vehicles[RaceID][e] = CreateVehicle(VPos[RaceID][e][mID],VPos[RaceID][e][PosX],VPos[RaceID][e][PosY],VPos[RaceID][e][PosZ],VPos[RaceID][e][Angle],-1,-1, 3000);
Trailers[RaceID][e] = CreateVehicle(TrailerPos[RaceID][e][mID],0,0,0,0,-1,-1, 3000);
AttachTrailerToVehicle(Trailers[RaceID][e], Vehicles[RaceID][e]);
TogglePlayerControllable(Racers[e][pID], false);
Thanx for ur help!