Vehicle position bug
#1

I have cars parked. Its okay, they spawn perfect.

But sometimes, players see, that all cars jumped to the middle of the road.
That position is nothing to do with the gamemode or any filterscript.
I also don't have any SetVehiclePos function.

When I respawn the cars, the are parking again perfect.

What can cause this problem?
How could I fix it?
Reply
#2

Is there an Object in the way? Maybe it is pushing the vehicles into the middle of the road?

Hmm can you show me the Vehicles in the actual script?
Reply
#3

It occurs when the vehicles load faster than the ground they are on. Since there is no collision when an object isn't loaded, the cars will fall through and respawn in the middle of the nearest street. Much like when you fall into the blue hell yourself.
Reply
#4

The cars aren't placed on any -created- object. They are in Red Country, San Andreas.

Код:
CreateVehicle(438,317.0013,-249.3525,1.3611,357.1542,6,6); // One of the bugging vehicles
Reply
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
It occurs when the vehicles load faster than the ground they are on. Since there is no collision when an object isn't loaded, the cars will fall through and respawn in the middle of the nearest street. Much like when you fall into the blue hell yourself.
Sorry, you were right. When I teleported to the cars, I saw they falling.
But how the hell can they fall down, when the objects -what they are spawned on- are default,regular objects and can be found in singleplayer too?

How could I fix this?
Should I set the Z coord higher?
Or I have to set the right position of each vehicle when they stream in?
Reply
#6

Set the Z coord higher should do the trick.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)