Hi, correct me if I am wrong, but you just want to check if a unit is in a unit group?
There's a build in function that does just that and it's under the unit group label in functions.
So in your idle triggers actions you would want to put an IF THEN ELSE action, add a condition, select the first part of this condition, go to the unit group subsection in function and select "Unit in Unit Group", then replace Unit with triggering unit and change the second part of the condition to true!
VoilĂ , that's just about it.
oh and add the second part for the second unit group, of course.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
hi my trigger is very simple.
Event: Unit becomes Idle Action: If unit is in unit group1 then do ACTION1 If unit is in unit group2 then do ACTION2
you get the point, but i cant seem to find anything that can check it the triggering unit is in a unit group.
Did you try the condition "Unit in Unit Group" under the unit group category?
((Triggering unit) is in Unit Group) == True/False
Hi, correct me if I am wrong, but you just want to check if a unit is in a unit group?
There's a build in function that does just that and it's under the unit group label in functions.
So in your idle triggers actions you would want to put an IF THEN ELSE action, add a condition, select the first part of this condition, go to the unit group subsection in function and select "Unit in Unit Group", then replace Unit with triggering unit and change the second part of the condition to true! VoilĂ , that's just about it.
oh and add the second part for the second unit group, of course.