• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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

Status
Not open for further replies.
Back
Top