CreateVehicle to AttachTrailerToVehicle sync is slow?
#1

Hey, I'm having alot of problems regarding AttachTrailerToVehicle, it cannot be used right after CreateVehicle.

I have even tried timers of 500 ms - 1.5 seconds to attach, yet it doesn't attach the created vehicle to the towtruck.

pawn Код:
PlayerInfo[playerid][pSpecial_Missile_Vehicle] = CreateVehicle(420, x, y, z + 10, angle, 0, 0, -1);
                                //LinkVehicleToInterior(PlayerInfo[playerid][pSpecial_Missile_Vehicle], INVISIBILITY_INDEX);
                                SetVehicleHealth(PlayerInfo[playerid][pSpecial_Missile_Vehicle], 2500.0);
                                AttachTrailerToVehicle(PlayerInfo[playerid][pSpecial_Missile_Vehicle], Current_Vehicle[playerid]);
Doesn't even attach, I think it spawns late also.

The vehicle that it is being attached to is a towtruck.

Any suggestions?
Reply


Messages In This Thread
CreateVehicle to AttachTrailerToVehicle sync is slow? - by Donya - 17.03.2012, 03:07
Re: CreateVehicle to AttachTrailerToVehicle sync is slow? - by Rac3r - 17.03.2012, 08:54
Re: CreateVehicle to AttachTrailerToVehicle sync is slow? - by Donya - 17.03.2012, 15:02
Re: CreateVehicle to AttachTrailerToVehicle sync is slow? - by ][Noname][ - 18.03.2012, 07:38

Forum Jump:


Users browsing this thread: 7 Guest(s)