Veh teleportation
#1

Hi everybody,

I am posting this message after doing numerous tests on a vehicle teleportation problem that I really have trouble explaining.
Vehicles are well parked when I spawn and as soon as you enter an interior and get out, the vehicles are teleported in the middle of the road.

I thought of a problem with the streamer and the mappings but I don’t see any logic into this...

I hope you can help me.

After a Respawn of vehicles, they return to the right position :


But as soon as we get in and out of an interior:
Reply
#2

Code please.
Reply
#3

Maybe can be, if your map is actually in CreateDynamicObject.

When you go to interior and come back out, the server reload the map, but cars still there, so all vehicles falls down because the map isn't loaded yet, the cars reappears in the middle of the street.

To fix this, you have to create the parking spots, and platforms for cars with CreateObject

That function keeps the object loaded for the player even if it is in the other corner of the map
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)