Problem when exiting a vehicle while an object is attached to it. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem when exiting a vehicle while an object is attached to it. (
/showthread.php?tid=503850)
Problem when exiting a vehicle while an object is attached to it. -
Unte99 - 31.03.2014
Hi. So the title says it all. I'm having that kind of problem. I'm not sure if it's the right direction I'm looking to, but I think that it has do to something with the objects boundaries or collision, don't know what it's called. The object is the blue opened container (ID 3043). The object goes almost all the way through the car, there's a little bit left empty. I tried to move the object all the way back from the vehicle cabin, but that didn't help, when I exit the vehicle, the player is teleported away from the vehicle, near to the road. I have attached a picture to the thread, it should be at the end of the thread. Any help is appreciated.
Re: Problem when exiting a vehicle while an object is attached to it. -
Unte99 - 02.04.2014
Bump.
Re: Problem when exiting a vehicle while an object is attached to it. -
Unte99 - 03.04.2014
Bump.
Re: Problem when exiting a vehicle while an object is attached to it. -
Dokins - 03.04.2014
Could I see the code where you're adding the object to the vehicle?
Re: Problem when exiting a vehicle while an object is attached to it. -
Unte99 - 16.04.2014
Quote:
Originally Posted by Dokins
Could I see the code where you're adding the object to the vehicle?
|
Ofcourse.
pawn Код:
// The objects are created in OnGameModeInit.
// The attachment is done in OnGameModeInit too.
AttachObjectToVehicle(priekaba, 15, x, y, z, 0.0, 0.0, 0.0);
AttachObjectToVehicle(durys1, 15, x, y, z, 0.0, 0.0, 0.0);
AttachObjectToVehicle(durys2, 15, x, y, z, 0.0, 0.0, 0.0);