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
 
  • 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)
 
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.
Back
Top