Here's a tricky question for you. Or maybe not.
I'm making a strategic mission in which you may deploy units on the map before the action. I have a cannon with gunner and commander, but also some guys standing around it, all in the same group. Now, when I move the gun to another position on the map I make the guys "teleport" to the same spot like this:
onMapSingleClick {"_X setpos _pos" foreach Units rGrp1; rGunGrp3 setpos [(getpos rGrp3_1 select 0),(getpos rGrp3_1 select 1),-0.2]}
The rGunGrp3 is the cannon and rGrp3_1 is just a guy in the group making the cannon get to the spot where he appears. Prolly a better way of solving that, but anyway, here's the problem. The guys who are supposed to be standing spread out around the cannon instead end up inside it, since they were teleported to the exact same spot.
Is there a way of making them appear next to the cannon instead of inside it when they are "teleported"?
Thx guys, yer the best