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

Region Safe Spot

Status
Not open for further replies.
Level 3
Joined
Jun 23, 2008
Messages
22
just make a trigger like this:
  • Untitled Trigger 001
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
      • (Number of units in (Units in your region)) Greater than or equal to 1
    • Actions
      • Unit Group - Pick every unit in (Units in your region) and do (Unit - Make (Picked unit) Invulnerable)
 
Level 5
Joined
May 21, 2006
Messages
174
  • Entering Region
    • Events
      • Unit - A unit enters Safe Spot <gen>
    • Conditions
    • Actions
      • Unit - Make (Entering unit) Invulnerable
  • Leaving Region
    • Events
      • Unit - A unit leaves Safe Spot <gen>
    • Conditions
    • Actions
      • Unit - Make (Leaving unit) Vulnerable
just make a trigger like this:
  • Untitled Trigger 001
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
      • (Number of units in (Units in your region)) Greater than or equal to 1
    • Actions
      • Unit Group - Pick every unit in (Units in your region) and do (Unit - Make (Picked unit) Invulnerable)
Leaks.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,201
What ever you do, do not use mj1994's way!

It leaks 2 unit groups a second which is a bad leak and will quickly make your map unplayable.

Use PatruX if you value your map's playability. His is not only more efficent as it fires only when needed but it also does not leak.
 
Status
Not open for further replies.
Top