triggering damage zone

Discussion in 'StarCraft 2 Maps, Replays, Modding' started by Kampy, Aug 31, 2010.

triggering damage zone

  1. Kampy

    Kampy New Member

    Joined:
    Aug 30, 2010
    Messages:
    7
    Likes received:
    0
    Trophy points:
    0
    Hi, this might be a simple question, but I haven't managed to do this yet:
    How do I make an area that constantly hurts the (air-) units inside.
    I tried "unit enters region" but that only triggers once and somehow damage was not dealt either.
    (sry Im new to the editor)
     
  2. EatMeReturns

    EatMeReturns Happy Mapper Moderator

    Joined:
    Jun 28, 2007
    Messages:
    1,730
    Likes received:
    11
    Trophy points:
    38
    From:
    Albuquerque, New Mexico
    Oh man, this is complicated. You are going to need to make a unit group variable. For the event Unit Enters Region, add the triggering unit to your unit group variable. For the event Unit Leaves Region, remove the unit from your unit group variable. Now a third trigger with the event Every X Seconds and an action that picks each unit in your unit group variable, and for each unit reduces Life by however much you want it to reduce by. Since you want it to be air units only, edit the properties of your region to only apply to the air unit layers. If you can't figure parts of this out, I will give step-by-step instructions. I just don't wanna do step by step for the whole thing.
     
  3. Kampy

    Kampy New Member

    Joined:
    Aug 30, 2010
    Messages:
    7
    Likes received:
    0
    Trophy points:
    0
    thanks for your answer. Ive solved this already using effects.
     
  4. EatMeReturns

    EatMeReturns Happy Mapper Moderator

    Joined:
    Jun 28, 2007
    Messages:
    1,730
    Likes received:
    11
    Trophy points:
    38
    From:
    Albuquerque, New Mexico
    You could have said you were using abilities and not triggers. -.-