Is there a way to have a unit group all follow the order that a member of the group has received? Making a trigger than fires on an order given to a unit and orders the unit group is easy, but ordering the group would set off the trigger again and the group would repeat the order to each other in a loop until sc2 gives and order. Turning the trigger off before giving the order to the unit group doesn't seem to help.
Haven't tried this but I would think if you had a Wait for Conditions (rechecking every 0.5 or 1 second) trigger... Once the "Leader" unit is ordered to move, set "Leader movement" variable to true... If Leader movement == true, move all other Units from Unit Group to same spot as Leader, Else either do nothing or turn the trigger off.
Should work, but I'm just guessing lol I hope that's what you're trying to do...
Hm, not sure if I understand what you need. But maybe "Unit group - Pick each unit in (unit group) and do Actions" would work? If you need to order a group of units, based on orders given to another ("leader") unit, then you could run the trigger (Event) whenever an order is given to that leader unit. And it should be possible to have them do the same actions as the leader unit.
What I am trying to do is make a 'squad' of units, that will all follow an order given to any of them so they act as a group and cannot be split from each other. A trigger that fires only from a specific leader unit would not work since if the leader dies you could no longer give any orders to the squad.
Like I said, giving the whole unit an order isn't the problem, its that I need to stop the 'broadcasted' order from firing the trigger again. Only orders given directly by the player should fire, and not orders distributed through the trigger, but I can't find a way to differentiate them.
Edit:
Somehow the event "Any Unit is issued an order to Any Ability Command" is triggered by "Order all units in Group" but not by "Pick each unit in Group and do Order"
Is there a way to have a unit group all follow the order that a member of the group has received? Making a trigger than fires on an order given to a unit and orders the unit group is easy, but ordering the group would set off the trigger again and the group would repeat the order to each other in a loop until sc2 gives and order. Turning the trigger off before giving the order to the unit group doesn't seem to help.
@campingcarlv2: Go
Haven't tried this but I would think if you had a Wait for Conditions (rechecking every 0.5 or 1 second) trigger... Once the "Leader" unit is ordered to move, set "Leader movement" variable to true... If Leader movement == true, move all other Units from Unit Group to same spot as Leader, Else either do nothing or turn the trigger off.
Should work, but I'm just guessing lol I hope that's what you're trying to do...
@campingcarlv2: Go
Hm, not sure if I understand what you need. But maybe "Unit group - Pick each unit in (unit group) and do Actions" would work? If you need to order a group of units, based on orders given to another ("leader") unit, then you could run the trigger (Event) whenever an order is given to that leader unit. And it should be possible to have them do the same actions as the leader unit.
But I am not sure if that's what you're after.
@Dystisis: Go
What I am trying to do is make a 'squad' of units, that will all follow an order given to any of them so they act as a group and cannot be split from each other. A trigger that fires only from a specific leader unit would not work since if the leader dies you could no longer give any orders to the squad. Like I said, giving the whole unit an order isn't the problem, its that I need to stop the 'broadcasted' order from firing the trigger again. Only orders given directly by the player should fire, and not orders distributed through the trigger, but I can't find a way to differentiate them.
Edit: Somehow the event "Any Unit is issued an order to Any Ability Command" is triggered by "Order all units in Group" but not by "Pick each unit in Group and do Order"