Passive Taunt

adeoin

Member
Reaction score
11
does anyone know how to make a passive taunt that taunts every X seconds.
 

Varine

And as the moon rises, we shall prepare for war
Reaction score
805
Make a trigger so that if a unit has some dummy spell, it will cast taunt. Not sure what the code would be since I haven't done triggers for a long time though.
 

Bogrim

y hello thar
Reaction score
154
To make Taunt passive, just issue nearby enemy units to attack the unit with the ability.
Trigger:
  • Passive Taunt
    • Events
      • Time - Every X seconds of game time
    • Conditions
    • Actions
      • Set Temp_Group[1] = (Units in (Playable map area) matching ((Level of Passive Taunt for (Matching unit)) Greater than 0))
      • Unit Group - Pick every unit in Temp_Group[1] and do (Actions)
        • Loop - Actions
          • Set Temp_Point = (Position of (Picked unit))
          • Set Temp_Unit = (Picked unit)
          • Set Temp_Group[2] = Units within X of Temp_Point matching ((((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True))
          • Unit Group - Pick every unit in Temp_Group[2] and do (Actions)
            • Loop - Actions
              • Unit - Order (Picked unit) to Attack Temp_Unit
          • Custom Script: call RemoveLocation( udg_Temp_Point )
          • Custom Script: call DestroyGroup( udg_Temp_Group[2] )
      • Custom Script: call DestroyGroup( udg_Temp_Group[1] )
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top