• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

question about taunt

Status
Not open for further replies.
Level 12
Joined
Jul 17, 2013
Messages
544
hey i am using vanillia taunt, i changed it slightly. but the issue is whenever my unit uses taunt the enemy will be chasing him till the end of the world and only stop when they are blocked by others unit and they cannot reserach the taunter.

i would like to make it so units chase taunter for max 20 seconds then they stop is that possible? i mean they should stop if taunter goes too far.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
Cast Taunt Trigger:
A unit casts taunt -> Pick every unit within taunt range of the caster -> If picked unit is an enemy and can attack the taunter -> Add picked unit to TauntUnitGroup -> Create a Dummy and order it to cast a Taunt buff on the picked unit (base it on the Slow ability) -> Turn on Taunt Periodic Trigger

Taunt Periodic Trigger:
Every 0.25 seconds -> Pick every unit in TauntUnitGroup -> If picked unit has Taunt buff equal to false -> Order picked unit to stop -> Remove picked unit from TauntUnitGroup -> If TauntUnitGroup is empty then Turn off Taunt Periodic Trigger

The Dummy Slow ability should last 20.00 seconds. Set it's slow to 0% and create a new buff for it (Taunt buff).

You may want to remove the Taunt buff from the units if they change targets, for example in response to them attacking a different unit.
 
Last edited:
Status
Not open for further replies.
Top