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

Event Trackable?

Status
Not open for further replies.
will this do?
  • Events
    • Time - Every 0.60 seconds of game time
  • Conditions
  • Actions
    • Set Point = (Position of UnitBeingRunAt)
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Units within 512.00 of Point) and do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Current order of (Picked unit)) Equal to (Order(move))
            • (Picked unit) Not equal to UnitBeingRunAt
          • Then - Actions
            • Game - Display to (All players) the text: (Name of (Picked unit))
          • Else - Actions
    • Custom script: call Removelocation(udg_Point)
 
you can always change it so it detects different orders
  • Events
    • Time - Every 0.60 seconds of game time
  • Conditions
  • Actions
    • Set Point = (Position of UnitBeingRunAt)
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Units within 512.00 of Point) and do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Current order of (Picked unit)) Equal to (Order(move))
                • (Current order of (Picked unit)) Equal to (Order(attack))
            • (Picked unit) Not equal to UnitBeingRunAt
          • Then - Actions
            • Game - Display to (All players) the text: (Name of (Picked unit))
          • Else - Actions
    • Custom script: call Removelocation(udg_Point)
edit
I think doing it this way would be better for that event.
  • Trigger - Add to (This trigger) the event (Unit - A unit comes within 256.00 of UnitBeingRunAt)
 
Level 8
Joined
Dec 9, 2009
Messages
397
  • Trigger - Add to (This trigger) the event (Unit - A unit comes within 256.00 of UnitBeingRunAt)
Would trigger through objects I'm pretty sure.


I'll try adding the event unit acquires a target

So, can I find out what the target is if I use that?
 
Status
Not open for further replies.
Top