- Joined
- Sep 8, 2008
- Messages
- 73
I need help making a trigger for a grouping system.
I have one global array for storing the group leader, udg_e.
I have one global array for storing the group, udg_g
the groups index in the array is the custom value that each unit is assigned.
What i need is a trigger that makes the whole group preform the same order that the leader is given. GUI or JASS; doesent matter. I have tried some, but it's real tricky to make it work somehow.
For example: the group leader is ordered to attack unit x, thus the rest of the group will do so too. And if the leader is ordered to move, the group will follow.
Very thankful for answers.
I have one global array for storing the group leader, udg_e.
I have one global array for storing the group, udg_g
the groups index in the array is the custom value that each unit is assigned.
What i need is a trigger that makes the whole group preform the same order that the leader is given. GUI or JASS; doesent matter. I have tried some, but it's real tricky to make it work somehow.
For example: the group leader is ordered to attack unit x, thus the rest of the group will do so too. And if the leader is ordered to move, the group will follow.
Very thankful for answers.