Spawnin vehicles in a Stunt map -
Rickyboy30 - 27.10.2009
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
Re: Spawnin vehicles in a Stunt map -
Drezek - 27.10.2009
adding a timer might work
Re: Spawnin vehicles in a Stunt map -
Mikep. - 27.10.2009
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.
Re: Spawnin vehicles in a Stunt map -
Rickyboy30 - 27.10.2009
Well, I just checked it again. Is it possible to 'freeze' the vehicles until a player enters it ?
Re: Spawnin vehicles in a Stunt map -
Mikep. - 27.10.2009
Erm, if it's on an object, isn't it frozen then..?
Re: Spawnin vehicles in a Stunt map -
Peter_Corneile - 27.10.2009
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
Re: Spawnin vehicles in a Stunt map -
Rickyboy30 - 27.10.2009
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 )
Re: Spawnin vehicles in a Stunt map -
Peter_Corneile - 27.10.2009
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
Re: Spawnin vehicles in a Stunt map -
Rickyboy30 - 27.10.2009
Ooh, alright. will do that! Thanks
Re: Spawnin vehicles in a Stunt map -
Peter_Corneile - 27.10.2009
Quote:
Originally Posted by Rickyboy30
Ooh, alright. will do that! Thanks
|
No Problem and i hope what i said is clear to you