Jump to content
Sign in to follow this  
alleycat

Spawning units in semirandom location?

Recommended Posts

I am looking for a way to have many different units spawn around a certain location. That location itself is "semi random".

So far I got the semi-randomness of the location working, by grouping it to different markers. But how to spawn specific units scattered around that location, which are not grouped themselves? The intention is to have a set of enemies that will be in a different area, but together in close vicinity around the location.

Share this post


Link to post
Share on other sites

Not exactly suited to what I need because I need in-editor placed units to appear at specific locations because I have scripts attached to each specific unit.

Share this post


Link to post
Share on other sites

A very simple solution is to use DAC (Dynamic AI Creation). DAC lets you spawn enemies in any area of the map you desire along with giving them raised intelligent levels to make them act like proper soldiers (sort of :P).

Also one of our clan members has now wrote a script for DAC zones where if you wanted them to leave the zone and take up a cba_function like defend, patrol or attack this is now possible too and all works very nicely and makes missions much better in every sense to just placing units down on the editor.

If you need any further information drop by our Squad TS channel at http://www.havoc-company.com/

Share this post


Link to post
Share on other sites

I'll take a look thanks. I am just having a habit of doing things the most failsafe way, because I ran into some very silly problems with very simple scripts when it comes to multiplayer and server/local things.

The reason why I shy away from spawned infantry is because I like to use some of the popular patrolling scripts, activated in the units init field.

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  

×