HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Group Formation/Movement

11-14-2006, 06:51 AM#1
skatj
Okay here is my predicament, i'm playing around with triggers to create a sort of "squad system" where you control one unit and the rest follow you.

First of all, the event i'm using to trigger it is unit is issued an order, with a condition checking if the order is move. This only works if I manually order it to move with the icon or hotkey, not if I right click. Any ways to get this to work?

Secondly, the trigger makes the units follow the previous one in a line, but they are spaced so far apart it looks very unconvincing. Is there any way to make units follow each other very very closely? I've experimented with values under Movement and Stats but nothing seemed to change this.

Thanks for the help.
11-14-2006, 12:36 PM#2
Anitarf
The warcraft engine will automaticaly move units in a formation if they are issued an order as a group - this will however only work for groups that contain 12 units or less. If your squads are small enough, the solution is simple - just reissue each order given to the leader to the squad as a whole; make sure you turn off the trigger before issuing the squad order so you don't get an infinite loop.
11-14-2006, 01:13 PM#3
blu_da_noob
Quote:
Originally Posted by skatj
First of all, the event i'm using to trigger it is unit is issued an order, with a condition checking if the order is move. This only works if I manually order it to move with the icon or hotkey, not if I right click. Any ways to get this to work?

The right-click order is called "smart".
11-14-2006, 04:22 PM#4
skatj
Quote:
Originally Posted by Anitarf
The warcraft engine will automaticaly move units in a formation if they are issued an order as a group - this will however only work for groups that contain 12 units or less. If your squads are small enough, the solution is simple - just reissue each order given to the leader to the squad as a whole; make sure you turn off the trigger before issuing the squad order so you don't get an infinite loop.

I think my title is a bit misleading, I am issuing each order individually with a loop to follow the person before him in line, it's supposed to be a sort of column formation.

Trigger:
Move
Collapse Events
Unit - A unit Is issued an order targeting a point
Collapse Conditions
Collapse And - All (Conditions) are true
Collapse Conditions
(Triggering unit) Equal to Platoon[1]
(Issued order) Equal to (Order(smart))
Collapse Actions
Collapse For each (Integer A) from 2 to 5, do (Actions)
Collapse Loop - Actions
Unit - Order Platoon[(Integer A)] to Follow Platoon[((Integer A) - 1)]

So I apologize, I meant group in a more general sense. The problem here is that the units keep quite a distance from each other when following and the last two soldiers won't even budge unless the leader is very far away from the start point.

Quote:
The right-click order is called "smart".

Thanks.