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

[Solved] Fleeing problem

Status
Not open for further replies.
Level 20
Joined
Apr 14, 2012
Messages
2,901
How about these triggers:
  • Combat
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Triggering unit) Equal to Your_Unit
    • Actions
      • Set Attacking_Unit = (Attacking unit)
      • Unit - Pause Your_Unit
      • Trigger - Turn on Flee Combat <gen>
Then when the attacker leaves your unit or stops attacking:

  • Flee Combat
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Triggering unit) Equal to Attacking_Unit
    • Actions
      • Unit - Unpause Your_Unit
      • Trigger - Turn off (This trigger)
EDIT: Your_Unit is the triggering unit... sorry .
 
Last edited:
Level 10
Joined
Dec 15, 2012
Messages
650
Sorry, my problem seems fixed itself =.=
-> Forgot to tell you guys that my unit can't attack and even move.
-> @Maker, your way not works.
-> @MasterTrainer and Hell_Master, I didn't test the pause way....
THX everyone...

EDIT :
There're nothing wrong, just my brain forgot something....
 
Status
Not open for further replies.
Top