- Joined
- May 16, 2020
- Messages
- 660
Hi guys,
I read a lot of threads how to make a taunt ability that forces enemies to attack a target for X seconds.
The best I found was this:
However, when testing it does not really work. The taunted unit can still be ordered to do something else - which renders the above in my opinion useless.
So as "workaround" I use another (in addition to the above) trigger that forces the taunted unit to attack the target every 0.03 seconds. But this is really inefficient and can still be circumvented by clicking very fast...
So my question: Does anyone have a better solution to make a unit completely ignore player commands while taunted?
I read a lot of threads how to make a taunt ability that forces enemies to attack a target for X seconds.
The best I found was this:
-
Events
-
Unit - A unit Is issued an order targeting an object
-
Unit - A unit Is issued an order targeting a point
-
Unit - A unit Is issued an order with no target
-
-
Actions
-
Set VariableSet BerserkerCall_UnitTemp = (Triggering unit)
-
Set VariableSet BerserkerCall_Target_CV = (Custom value of BerserkerCall_UnitTemp)
-
Trigger - Turn off (This trigger)
-
Unit - Order BerserkerCall_UnitTemp to Attack BerserkerCall_Caster[BerserkerCall_Target_CV]
-
Trigger - Turn on (This trigger)
-
However, when testing it does not really work. The taunted unit can still be ordered to do something else - which renders the above in my opinion useless.
So as "workaround" I use another (in addition to the above) trigger that forces the taunted unit to attack the target every 0.03 seconds. But this is really inefficient and can still be circumvented by clicking very fast...
So my question: Does anyone have a better solution to make a unit completely ignore player commands while taunted?