Hi, I was wondering someone could tell me how to assign units in a unit group to a unit variable.
I'm trying to make a spell which involves every unit in a 550 radius gets added to a unit group, then for every unit in the group, declare the picked unit to a unit variable ++
Ofc, that requires doing something like
Pick every unit in <Unit Group> do actions
Actions- Set UnitVariable[Counter] to Picked unit
Counter = Counter + 1;
But as far as I know, you can't have a forloop in a unit loop.
I'm trying to make a spell which involves every unit in a 550 radius gets added to a unit group, then for every unit in the group, declare the picked unit to a unit variable ++
Ofc, that requires doing something like
Pick every unit in <Unit Group> do actions
Actions- Set UnitVariable[Counter] to Picked unit
Counter = Counter + 1;
But as far as I know, you can't have a forloop in a unit loop.