maybe i wasn't clear.
The peon(my peon) has to be attacked when an enemy unit comes into a certain range from it. For example: enemy units are coming, i begin to attack them with mine and they retaliate........i take a peon near them because a gold mine is in the path: Here it goes! The enemy units see the peon as a whore and runs toward him to hit him. If i send units fighting this whore, the whore continues to attack the peon until he dies and another one come close like the previous one. Since then, the unit will stop becoming a whore and re-turn its attention to other units that are scratching its back.
Sounds clear now? ^^
I think "Unit comes in range" may be useful, but i dunno how to use it.
That's why i'm here.