• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Teamkill issue

Status
Not open for further replies.
Level 12
Joined
Dec 2, 2016
Messages
733
  • ANTI TK
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Target unit of issued order) belongs to an ally of (Owner of (Triggering unit))) Equal to True
          • ((Target unit of issued order) is A structure) Equal to False
        • Then - Actions
          • Game - Display to (All players) the text: test
          • Unit - Order (Triggering unit) to Stop
        • Else - Actions
          • Game - Display to (All players) the text: test2
It outputs "test" but keeps on attacking the unit. This is a tower that is targetting a ally unit.
 
It's not the wrong event, the message fires. I fixed it by pausing the unit ordering to stop and then unpausing.
Doesn't sound to be a good solution. Do it as Chaosy said.

  • Anti TK
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Triggering unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True
      • ((Triggering unit) is A structure) Equal to False
    • Actions
      • Unit - Order (Attacking unit) to Stop
 
Status
Not open for further replies.
Back
Top