• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Ally attack/Self attack

Status
Not open for further replies.
Level 3
Joined
Dec 24, 2008
Messages
63
Hi there!

I've searched the forum but couldn't find anything about this.


Okay here's my problem. When you use this trigger for no allied attack it works for allies.
  • No Allied Attack
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Owner of (Attacking unit)) is an ally of (Owner of (Attacked unit))) Equal to True
    • Actions
      • Unit - Order (Attacking unit) to Stop
But if you wanna attack your own buildings/workers it stops to.
How to make your self able to attack your own besides customing the spell "Unsummon buildings"?

Thanks /Tozza
PS: +rep for the one who comes with a solution. :)
 
Level 7
Joined
Feb 26, 2011
Messages
238
Here You Go!

  • Events
    • Unit -A unit Is attacked
  • Conditions -
    • ((Owner of (Attacking unit)) is an ally of (Owner of (Attacked unit))) Equal to True
    • (Owner of (Triggering Unit)) Not Equal To (Owner Of attacked unit)
  • Actions-
    • Unit - Order (Attacking unit) to Stop
 
Last edited:
Level 3
Joined
Dec 24, 2008
Messages
63
  • Events
    • Unit -A unit Is attacked
  • Conditions -
    • ((Owner of (Attacking unit)) is an ally of (Owner of (Attacked unit))) Equal to True
    • (Owner of (Triggering Unit)) Not Equal To (Owner Of attacked unit)
  • Actions-
    • Unit - Order (Attacking unit) to Stop

Didn't work but was just to change
  • (Owner of (Triggering Unit)) Not Equal To (Owner Of attacked unit)
to
  • (Owner of (Attacking unit)) Not equal to (Owner of (Attacked unit))
Thanks alot +rep :)
 
Status
Not open for further replies.
Top