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

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