Spawnin vehicles in a Stunt map
#1

Hey,

I created a stunt map wich is located in the air.
I also scripted some vehicles on it.
But, when I do the command to go to the map, the vehicles spawn earlier than the map does, so the vehicles just fall down.

Do you know how to solve this ?

Thanks
Reply
#2

adding a timer might work
Reply
#3

Set the virtual worlds of the vehicles to a different one to the player, then in a timer put them back to the player's world.

Use SetVehicleRespawn() in a timer.

Put the vehicles higher so they actually fall down onto the objects.

SetVehiclePos() in a timer.
Reply
#4

Well, I just checked it again. Is it possible to 'freeze' the vehicles until a player enters it ?
Reply
#5

Erm, if it's on an object, isn't it frozen then..?
Reply
#6

The problem is that maybe your objects are streamed but the vehicles are not (they are in your GM) , this will make the vehicles to load instantly but the objects might take some time
Reply
#7

Quote:
Originally Posted by ►Peter Corneile◄ [ideal-host.co.uk
]
The problem is that maybe your objects are streamed but the vehicles are not (they are in your GM) , this will make the vehicles to load instantly but the objects might take some time
You'r right, That's it!
Do you know how to solve it too ? ( The cars are just AddStaticVehicleEx and the objects are streamed with MidoStream )
Reply
#8

Alright listen .. The cars must be on 1 surface or maybe more .. For example like you have a helipad (object) and a heli (vehicle) .. The heli is in the GM but the helipad is streamed , so you will need to un-stream the helipad so that the heli doesnt fall down .. Similarly just unstream the object on which the vehicles are meant to spawn on
Reply
#9

Ooh, alright. will do that! Thanks
Reply
#10

Quote:
Originally Posted by Rickyboy30
Ooh, alright. will do that! Thanks
No Problem and i hope what i said is clear to you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)