komapatient
New Member
- Reaction score
- 10
Hi,
Is there any way to detect the attack range of an unit?
I want to reconfigure melee maps in a way that when a melee unit (AR =< 100) attacks a ranged unit, the ranged unit is forced to use a melee attack.
I first intended to create copies of units (a normal ranged archer and a dummy melee version of her e.g.) and simply replace them but now I feel like it would be more comfortable when I could stay with the original units and design a special melee attack via attack 2 for them! I felt like this because I don't want to exchange heroes with the exact items everytime, losing rallye points on units etc.
Well I guess there is a trigger to determine the range - but what I need is to bind the attacking unit to force to melee attack until the offender acquires a new target. I could use the custom value of unit integer to define an attack mode but I'm still not sure about detecting how long the unit is targeted by a melee attacker.
Any idea how to start this?
Is there any way to detect the attack range of an unit?
I want to reconfigure melee maps in a way that when a melee unit (AR =< 100) attacks a ranged unit, the ranged unit is forced to use a melee attack.
I first intended to create copies of units (a normal ranged archer and a dummy melee version of her e.g.) and simply replace them but now I feel like it would be more comfortable when I could stay with the original units and design a special melee attack via attack 2 for them! I felt like this because I don't want to exchange heroes with the exact items everytime, losing rallye points on units etc.
Well I guess there is a trigger to determine the range - but what I need is to bind the attacking unit to force to melee attack until the offender acquires a new target. I could use the custom value of unit integer to define an attack mode but I'm still not sure about detecting how long the unit is targeted by a melee attacker.
Any idea how to start this?