Trailer is not being attached.
#4

Quote:
Originally Posted by AndreT
View Post
You cannot instantly attach the trailer. The trailer must first stream in for the player, then AttachTrailerToVehicle can be used.

Here's how I (and I assume, most people) bypass the issue:

pawn Code:
// Where you create it
SetTimerEx("attachTrailer", 1000, false, "ii", createdvehicle, vehicleid);

// The timer
forward attachTrailer(trailerid, vehicleid);
public attachTrailer(trailerid, vehicleid)
    return AttachTrailerToVehicle(trailerid, vehicleid);
Thanks for the answer.
I won't be using AttachTrailerToVehicle(), i found a workaround.
Reply


Messages In This Thread
Trailer is not being attached. - by WooTFTW - 08.08.2011, 10:21
Re: Trailer is not being attached. - by JaTochNietDan - 08.08.2011, 10:41
Re: Trailer is not being attached. - by AndreT - 08.08.2011, 11:50
Re: Trailer is not being attached. - by WooTFTW - 08.08.2011, 11:55

Forum Jump:


Users browsing this thread: 1 Guest(s)