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

[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