• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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.
 
Level 22
Joined
Aug 27, 2013
Messages
3,973
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.
Top