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

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