- Joined
- Jul 26, 2008
- Messages
- 1,009
Alright I am wondering if there's an easier or faster way to manipulate groups than my current method.
Lets say I want to damage every unit in a group once. Well the only method I know is to pick every unit in that group and do damage to them, then when I'm done I remove that unit from the group and repeat until the group is empty.
Well lets say I want to hit every unit in that group for damage then ping their location on a minimap and share vision of them for 3 seconds. I obviously wouldn't want them to be removed from the group.
So is there a method of counting every unit in a group once without removing them?
Oh and if someone could tell me how to transfer Data in vJASS outside of timers that'd be great.
Like say I want to check the targeted unit of a spell in a boolean from a group, like so:
Lets say I want to damage every unit in a group once. Well the only method I know is to pick every unit in that group and do damage to them, then when I'm done I remove that unit from the group and repeat until the group is empty.
Well lets say I want to hit every unit in that group for damage then ping their location on a minimap and share vision of them for 3 seconds. I obviously wouldn't want them to be removed from the group.
So is there a method of counting every unit in a group once without removing them?
Oh and if someone could tell me how to transfer Data in vJASS outside of timers that'd be great.
Like say I want to check the targeted unit of a spell in a boolean from a group, like so:
JASS:
private function IsHero takes nothing returns boolean
return IsUnitType(?, UNIT_TYPE_HERO) == true
endfunction