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

Unit Leaving Region Problem

Status
Not open for further replies.
Level 3
Joined
Aug 22, 2011
Messages
29
Hello

I have made a skill where a hawk is summoned, but i want to make the hawk not be able to leave the summoners position.

my triggers:
  • SilverHawkRegion Player 1
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Hunter
            • Then - Actions
              • Region - Center SilverHawkAreaPlayer1 <gen> on (Position of (Picked unit))
            • Else - Actions
              • Trigger - Turn off (This trigger)
  • SilverHawkPlayer1
    • Events
      • Unit - A unit leaves SilverHawkAreaPlayer1 <gen>
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Owner of (Leaving unit)) Equal to Player 1 (Red)
          • Or - Any (Conditions) are true
            • Conditions
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 1)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 2)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 3)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 4)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 5)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 6)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 7)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 8)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 9)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 10)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 11)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 12)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 13)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 14)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 15)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 16)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 17)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 18)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 19)
              • (Unit-type of (Leaving unit)) Equal to Silver Hawk (Level 20)
    • Actions
      • Unit - Move (Leaving unit) instantly to (Center of SilverHawkAreaPlayer1 <gen>)
Can anyone help me figure out what's wrong? Thanks
 
Status
Not open for further replies.
Top