Hi guys, I have been trying to find a way to deal damage to unit when they run into each other (ex: if a marine runs into a scv, both loses 1 hp). I am not sure if this should use a trigger or data editor so even if you found a way with the data editor, please post it here too. thanks.
I'm not sure if theres a way to do it with the data editor, but I've been shocked by some of the things you can do with the data editor so there may be a way.
With triggers though, you could attach a region to your units. If another unit enters that region, run a trigger event for that, and modify their health that way.
Are they supposed to repel one another?
If there arnt to many could you not just create a search area effect
and deal damage to the enemy player?
or is it the same player ?
Or are you trying to damage different types of units differently?
Hi guys, I have been trying to find a way to deal damage to unit when they run into each other (ex: if a marine runs into a scv, both loses 1 hp). I am not sure if this should use a trigger or data editor so even if you found a way with the data editor, please post it here too. thanks.
I'm not sure if theres a way to do it with the data editor, but I've been shocked by some of the things you can do with the data editor so there may be a way.
With triggers though, you could attach a region to your units. If another unit enters that region, run a trigger event for that, and modify their health that way.
Are they supposed to repel one another?
If there arnt to many could you not just create a search area effect
and deal damage to the enemy player?
or is it the same player ?
Or are you trying to damage different types of units differently?
Thanks for the answers, the region thing works fine for me