Jump to content
Sign in to follow this  
KingN

Random position with multiple objects

Recommended Posts

Ok I tried searching as I thought somebody has already made a script for this but no avail.

What I'm trying to do is add enemy camps, emplacements etc in my mission and place them in a randomized position for better replayability. I'd like to first build up the camp in the editor and then via a script move it to a random position within a defined area or one of my predefined positions. In techical point of view I've tried to move multiple objects and place them in a new randomized position maintaining the objects' relative distances and directions to each other and maybe even rotate the entity into a random direction.

Does this kind of script already exist or does somebody know how to implement this?

Share this post


Link to post
Share on other sites

Maybe you take a look at the Random Enemy Camps by wolffy.au. This script creates random camp and random number of troops.

AI will do random animations like seating and walking out and in and out of the tent.

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  

×