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

Can you detect when a unit is in combat?

Status
Not open for further replies.
Level 8
Joined
Jul 29, 2010
Messages
319
just wondering if there is a way to set a condition that will tell whether a unit is being damaged or is attacking something?
  • Moving them
    • Events
      • Time - Every 4.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Unit - Order Revenant[(Random integer number between 1 and 2)] to Move To (Random point in MLRevregions[(Random integer number between 1 and 2)])
        • Else - Actions
This being the trigger i need to implement a detecting system into, so the units will only move if it is out of combat.
 
Level 11
Joined
May 16, 2016
Messages
730
just wondering if there is a way to set a condition that will tell whether a unit is being damaged or is attacking something?
You should pay attention on INIT trigger to set Combat time (after it return out of combat) and CHECK COMBAT.
CHECK COMBAT doesn't connected with any trigger, but you may add it in your triggers where you need to check combat.
 

Attachments

  • ENTERING COMBAT.w3x
    14.7 KB · Views: 39
Status
Not open for further replies.
Top