First of all, there is a dialog button that when pressed, it summon 8 units. Second, what I want is that those 8 units belong to a unit group, and those units are always moving together. So, when I select any unit of this group, the 7 other follow them.
You might be able to use the unit issued order event to achieve what you want. You could test if the ordered unit is inside the unit group and if so then relay the order to all others in the group. To prevent an infinite loop remember to turn off the trigger when it issues orders to the group.
As for the dialog button, it works like all dialog buttons. The 8 units it creates are then added to a unit group which is used by the order trigger.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi guys!
I wonder if there is a way to do this:
First of all, there is a dialog button that when pressed, it summon 8 units.
Second, what I want is that those 8 units belong to a unit group, and those units are always moving together. So, when I select any unit of this group, the 7 other follow them.
Is there a way to do this?
You might be able to use the unit issued order event to achieve what you want. You could test if the ordered unit is inside the unit group and if so then relay the order to all others in the group. To prevent an infinite loop remember to turn off the trigger when it issues orders to the group.
As for the dialog button, it works like all dialog buttons. The 8 units it creates are then added to a unit group which is used by the order trigger.