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

Help - How to disable friendly fire using triggers (teamkill)

Status
Not open for further replies.
Level 9
Joined
Jan 8, 2008
Messages
357
Sorry if i posted this in the wrong place.

I just want to ask
"How to disable friendly fire using triggers?"

I have made my triggers like belows but it doesn't work.

event - a unit is issued an order
conditions:
- (owner of target unit of issued order) is an ally of (owner of ordered unit) is true
- order equal to attack

actions
- order (ordered unit) to stop

Any idea?
 
Level 2
Joined
Jan 17, 2008
Messages
27
maybe you can put "wait 1 second" before you order it to stop?

btw, you should post this in World Editor Help Zone
 
Level 15
Joined
Dec 18, 2007
Messages
1,098
Erm try this:
event - a unit is attacked
conditions:
- (owner of attacking unit) is an ally of (owner of attacked) is true

actions
-pause attacking unit
- order (attacking unit) to stop
-unpause attacking unit

Not sure if the pause and unpause is needed though...
But i am pretty sure it works
 
Status
Not open for further replies.
Top