Jump to content
Sign in to follow this  
WaIdoZ

Spawn vehicle on flat land???

Recommended Posts

How do you script a spawnvehicle to where it will spawn in flat land on a random position. since it keep spawning into trees and water and the BIG one is on hills to where it will flip over or blow up because it clipping into a hill.

Share this post


Link to post
Share on other sites

Hi, you could just randomly move an existing vehicle to a marker position you define, so if you had a number of markers in different

areas, at the start of the mission the vehicle would randomly moved to one of them.

     I have a video on how to do this:

What is your intent to wanting to spawn a vehicle, to patrol?

If you wanted a vehicle or vehicles to patrol then thats another thing along with spawning and being randomized. You could use

this script which you can define what type of vehicles will spawn and they will randomly spawn wherever in that marker and then patrol it.

 

RYD_Patrol Script

https://forums.bohemia.net/forums/topic/284094-ryd_pt-patrol-script/

Share this post


Link to post
Share on other sites
4 minutes ago, Gunter Severloh said:

Hi, you could just randomly move an existing vehicle to a marker position you define, so if you had a number of markers in different

areas, at the start of the mission the vehicle would randomly moved to one of them.

     I have a video on how to do this:

What is your intent to wanting to spawn a vehicle, to patrol?

If you wanted a vehicle or vehicles to patrol then thats another thing along with spawning and being randomized. You could use

this script which you can define what type of vehicles will spawn and they will randomly spawn wherever in that marker and then patrol it.

 

RYD_Patrol Script

https://forums.bohemia.net/forums/topic/284094-ryd_pt-patrol-script/

well, I am trying to spawn a helicopter in a random place in a city and town, but every time it spawns there. It will be in a tree or water and the worse part it will blow up because of the terrain with small hills to where it not flat so it will just blow up. 

Share this post


Link to post
Share on other sites

Spawn a helicopter on land to do what?

As shown in the first video, you can set the markers where you want them, and at the start of the mission

that helicopter would be moved to one of those markers, so you would know how the heli would end up if it were to be moved there.

 

Another way same concept:

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×