• 🏆 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!

Ally attack

Status
Not open for further replies.
Level 3
Joined
Aug 18, 2007
Messages
34
herro dere is me again. i was wondrin this time how to make it so allies cant attack their allies, basicallly the same system as dota. this is what ive go so far
Event
Unit- A unit Is attacked
Conditions
((Triggering unit) belongs to an ally of player 1 (red)) Equal to True
Actions
Unit- Order (attacking unit) to stop

This makes it so reds units cant attack his allies... but my enemy (blue) cant attack my units either... i made sure that blue is on a different force than me, but still doesnt work
PLZ HALP
 
Level 3
Joined
Aug 18, 2007
Messages
34
kk that makes sense... but how do i get the whole

((Attacking unit) is equal to an ally of (Triggering Unit)) equals true?
:hohum:

EDIT

i put in the trigger with Triggering Player instead of Triggering Unit, but now my guys cant attack the blue peps :O
Plz halp again
 
Status
Not open for further replies.
Top