HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Moving units in group

01-21-2010, 01:05 PM#1
leric
anyone know how to make a group of unit move in formation? I just need the group of unit to move in group instead one is far ahead of one another. The one infront will wait for those behind.
01-21-2010, 10:21 PM#2
Themerion
Yes, just take the group and issue a group order instead of a unit order.

Trigger:
Unit Group - Order WhateverUnitGroupYouHave to Attack-Move To (Center of (Playable map area))
01-22-2010, 12:54 AM#3
leric
i don't mean that. I've been using group order but the unit move out of formation. Hero often at the far frontline engaging in battle while some units is still traveling there. I want to move as "formation" as define by blizzard.
01-22-2010, 06:02 PM#4
Themerion
Well, that's how you make units move in formation. That order will keep them in formation, for as long as no other orders are issued to them.

If you order the hero to move separately after that, he will run on his own. If you have a region-trigger telling the units to change direction one by one, then they will run on their own.

EDIT You can test for yourself: Take a fast unit (Wind Walked Blademaster), and a slow unit (Demolisher). Issue a group order on them (select both), and you'll notice how the Blademaster slows down and waits for the Demolisher.
01-23-2010, 04:08 AM#5
leric
yea i did try that already, I group a group of 1 hero, 3 huntress and 3 archer together and then issue an order attacking a creep on another side of the map. The result is the hero will reach 1-2 second earlier and others reach one by one in a line rather than group formation.

I'm dealing with ai script here rather than triggers. I repeatedly give the same order every second due to there is some conflict between my orders and the "captain" created for melee ai. It will always order my unit back to the AI start location. I'm still finding a way to catch the unit(captain) as a reference to conduct my study on how to control the captain flexibly. Do you know of a way to capture it? I've heard of a way that is capturing the target unit of the unit that is being issued as sometimes the target unit is the captain but then it seems i've not succeed after many tries or maybe i've misunderstood it. Answer number 6 is what i'm refering to from this thread.

EDIT: I've found that GroupPointOrder will make unit move in formation while GroupTargetOrder will not. But in my AI i suspect that due to i'm giving out point orders every second which makes them unable to move in formation. I've tried setting captainshome as the creep camp or ask the captain to attack the point using AI natives but no success to stop the defending captain calling back my unit to defend the base.