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

The 'Escape Map' tile killing?

Status
Not open for further replies.
Level 4
Joined
May 16, 2004
Messages
76
Ok so just a quick question, i tried searching through alot of threads on the forums and couldnt find anything with a definate answer.

On the escape maps, if the player strays off the path, he gets killed. What would be the most efficiant and easiest way to do this. I have thought about creating a region next to each path tile so that if they enter that region it would kill them, but surely there must be an easier way then creating hundreds of regions
 
Level 9
Joined
May 27, 2006
Messages
498
  • blah
    • Events:
      • Time - Every 0.04 seconds
    • Conditions:
    • Actions:
      • Custom script: set bj_wantDestroyGroup=true
      • Unit Group - Pick every unit in (Unit in (Playable map area)) matching (Owner of (Matching unit) is an ally of (Player 1 (Red))) and do (Actions):
        • Set TempPoint = (Position of (Picked unit))
        • If/Then/Else - Multiple Functions
          • If - Conditions
            • (Terrain type at TempPoint) Equal to Lordaeron Summer - Dirt /whatever you want
          • Then - Actions
            • Unit - Kill (Picked unit)
          • Else - Actions
        • Custom script: call RemoveLocation(udg_TempPoint)
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
For blight its easier
just make your unit only regenerate hp on blight and make hp regen -1000000
so it will have -1000000000 regen on blight and die

And Search before posting
 
Status
Not open for further replies.
Top