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

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,255
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