I have a spell which, upon casting, uses triggers to create and move its projectiles. The trigger adds a buff to the projectile from the caster which periodically checks for collision with enemy units near the projectile, and upon finding a collision, damages the enemy unit it collides with.
This part works perfectly. The kill is also correctly awarded to the caster.
However, units damaged or killed by these projectiles do not aggro the caster. Neither do surrounding units. This is a problem, because the hero can just spam the spell with no repercussions.
I could be wrong but I thought notification only worked for players... you get a ping on your map/the adjutant/whatever screams out 'WE ARE UNDER ATTACK!!" and crap like that, lol :P
Maybe check sight range on the units. If they're allied they should help out but i don't know... does SC2 melee even do this? Otherwise could use a trigger to pick each unit around the damaged unit and order them to attack move or something.
I have a spell which, upon casting, uses triggers to create and move its projectiles. The trigger adds a buff to the projectile from the caster which periodically checks for collision with enemy units near the projectile, and upon finding a collision, damages the enemy unit it collides with.
This part works perfectly. The kill is also correctly awarded to the caster.
However, units damaged or killed by these projectiles do not aggro the caster. Neither do surrounding units. This is a problem, because the hero can just spam the spell with no repercussions.
Does anyone know how to fix this?
@Vexal: Go
the Damage effect has a field called Respone Flags, make sure to check Acquire and Flee in this field.
@BorgDragon: Go
Thanks, that, plus adding the "notification" flag to the damage fixed it.
@Vexal: Go
I could be wrong but I thought notification only worked for players... you get a ping on your map/the adjutant/whatever screams out 'WE ARE UNDER ATTACK!!" and crap like that, lol :P
@BorgDragon: Go
Ahh, so your suggestion fixed it so units directly hit by the projectiles aggro the caster. However, none of surrounding units aggro.
How is this fixed?
@Vexal: Go
Again, in the damage effect, I believe it's tied to Effect - Flags, make sure to check Notification.
@BorgDragon: Go
Yeah, that doesn't do anything.
@Vexal: Go
Maybe check sight range on the units. If they're allied they should help out but i don't know... does SC2 melee even do this? Otherwise could use a trigger to pick each unit around the damaged unit and order them to attack move or something.
@OneTwoSC: Go
They aggro correctly for attacks and spells that don't use this manner of triggering.