Hey everybody,
At the moment I'm making a "hero arena" style map, and as a buyable "Battlefield Effect" players can spawn a line of sheep that run across the map and blow up if they come into contact with an enemy hero (so they effectively have to dodge them).
I've got the spawn triggers to work fine, however I have no idea how to make the sheep explode when they come into contact with the heroes. (And kill them in one fluffy pop)
I thought about different possibilities; such as creating an invisable aura and using a trigger "When unit is effected by spell" (or whatever the exact name is).
I think ultimately what I need to understand is how to make spawned units become part of a unit group. I suppose you could make a variable, and set each sheep to 1,2,3 etc, but since I'm spawning loads of sheep it wouldn't be very effective. There is no trigger I can find that doesn't require a specific unit (aka - When unit comes within XX of unit, instead of what I need = "When unit type comes within XX of Unit")
Or if there's a different easier way - but any help would be great
Thanks in advance, Warhoof.
At the moment I'm making a "hero arena" style map, and as a buyable "Battlefield Effect" players can spawn a line of sheep that run across the map and blow up if they come into contact with an enemy hero (so they effectively have to dodge them).
I've got the spawn triggers to work fine, however I have no idea how to make the sheep explode when they come into contact with the heroes. (And kill them in one fluffy pop)
I thought about different possibilities; such as creating an invisable aura and using a trigger "When unit is effected by spell" (or whatever the exact name is).
I think ultimately what I need to understand is how to make spawned units become part of a unit group. I suppose you could make a variable, and set each sheep to 1,2,3 etc, but since I'm spawning loads of sheep it wouldn't be very effective. There is no trigger I can find that doesn't require a specific unit (aka - When unit comes within XX of unit, instead of what I need = "When unit type comes within XX of Unit")
Or if there's a different easier way - but any help would be great
Thanks in advance, Warhoof.