• 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.

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