HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit line up abreast

06-25-2002, 08:19 AM#1
littlecramp
How do I make unit to line up abreast using triggers?

E.G X=unit

X X X X X
X X X
X X X X X

After align XXXXXXXXXXXXX
07-01-2002, 08:05 PM#2
dataangel
Hmm, well there are a couple possible ways you could do this. You could setup a bunch of individual regions next to each other and order each unit to one, but that'd probably get tedious really fast.

Here's how I'd do it though. First put the first unit in the line in a variable. Then order every other unit to move to the position of the first unit at an offset of 20, then of 40, then of 60, and so on and so forth. You could do it in a for loop.
07-02-2002, 02:53 PM#3
littlecramp
Thanks! Anyway, I already had done it!