If it absolutely has to be a trigger, I suggest attaching a region to the unit in question and having a 'Unit enters region' trigger.
If you want them to take damage while they remain near you, you'll need to create a damage-dealing behavior like with Psionic Storm, but with indefinite duration, and then remove it with a Unit Leaves Region trigger. If you just want them to take damage when they enter range and no other time, you can cut out the Apply Behavior step.
But srsly, I want the units to take some damage when they come close to me.
@FraindorX: Go
There's several of these behavior called collision check in the campaign. Mostly used for the lost viking game. You can check them out
I forgot to say it needs to be a trigger, but thanks for the reply :)
@FraindorX: Go
You can hurt me but only with a razor <3
Just kidding.....
-Misu
If it absolutely has to be a trigger, I suggest attaching a region to the unit in question and having a 'Unit enters region' trigger.
If you want them to take damage while they remain near you, you'll need to create a damage-dealing behavior like with Psionic Storm, but with indefinite duration, and then remove it with a Unit Leaves Region trigger. If you just want them to take damage when they enter range and no other time, you can cut out the Apply Behavior step.
Thank you so much Sceptilesolarbeam :)