Tower attacking Heros if no creeps are present in range?

shiFt

Member
Reaction score
8
How could I trigger this , which event response would I use, I was thinking of making a region around the tower that is slightly larger than the towers range and using unit enters a region then targets that unit? adds them to a unit group then randomly attacks 1 if they are not a hero and if that group is empty then attack the hero?
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
why do you want to trigger it?
Just use when a unit is attaked and check if no units in range and attaked unit i a hero
 

shiFt

Member
Reaction score
8
Just so heros are covered when attacking a tower with creeps, so that you will know you wont get attacked if there are creeps attacking with you, or around you.

Elaborate....
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Event a unit is attacked
Then see if attacked unit type equal to hero
and check with a unit group that filters out heroes are in range then order tower to stop and attack a random unit for the group
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top