17.03.2012, 03:07
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.
Doesn't even attach, I think it spawns late also.
The vehicle that it is being attached to is a towtruck.
Any suggestions?
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]);
The vehicle that it is being attached to is a towtruck.
Any suggestions?