Hi fellas!
How can I make a soldier move to another soldier using the doMove command (not waypoints!)- but I do not want to just make him move to the exact location of the other soldier, I'd rather have him move to a point that is set randomly in an area of about 50 meters AROUND the soldier.
JUST AN EXAMPLE, I ASSUME IT'S A ENTIRELY WRONG WAY OF DOING IT: In my example, I want a soldier called "SS2" to move to a random position around a standing soldier called "SS1". So dere's da code:
SS2 doMove [(getPos SS1 select 0)+(random 20-random 30), (getPos SS1 select 1)+(random 20-random 30), getPos SS2 select 2] But with this the unit SS2 always moves to a random position LEFT of the soldier SS1.
Thanks in advance for any help!