Jump to content
Sign in to follow this  
sheepherder12

Set of locations to randomly spawn a prebuilt base?

Recommended Posts

Looking for some info / tutorial on how to have a set of pre destermed locations to have a chance to spawn essentially a base with some ai. Kinda new and mostly a script kiddy so any advice would help. Thx

Share this post


Link to post
Share on other sites

You also might want to consider looking for existing (military) buildings on the map, instead of just looking for some empty (and flat) space. From there you could just populate that building and look for flat and empty spaces around it (or roads, or...) to spawn further stuff.

If you're going down the route of populating specific buildings, make sure you're comfortable with modelToWorld which allows you to position stuff relativ to (static) buildings. E.g. to spawn furniture or sandbags or camonets outside touching the walls, and such stuff.

 

On a side note: it's rather hard to spawn highly dynamic compositions and make it look alright at the same time. While certainly feasible (to some degree), you might want to have a look at X-Cam (or wait for the official 3d-editor) to maybe put some sub-compositions together manually by hand. You can take measurements to then spawn the same composition translated (and rotated) to somewhere else. Maybe also have some dock-points to work with or something, in order to combine such sub-compositions.

And if you start just with a flat and empty space, there is the whole question/problem of layout (it's a fun one though with many creative approaches).

 

In order to have sandbags, fences or minefields around such a base (at least partially), it's always nice to compute a convex hull (and add some border/margin), say as opposed to simply spawning stuff circularly with a fixed radius.

 

Have fun. :D

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  

×