| 03-22-2007, 03:21 AM | #1 |
I have a trigger which uses "TriggerRegisterEnterRect" to make the unit invulnerable. My problem is that if a unit is already there and morph's, robo's, etc.; the new unit is not detected as entering the rect and is therefore not set invulnerable. I'm just wondering what the best soluting to this would be. I could register the spell effects, but I'm hoping for something easier than checking all of my units which could morph. Edit: I just ended up enabling a periodic to group units in that region and do my actions. Trigger is disabled again when the group is empty, meaning they left the region. Should work ok, so nvmnd. |
| 03-22-2007, 10:53 AM | #2 |
This happens because a morphing unit is not a "new" unit, but has only different stats. Your periodic event could be a nice workaround. Are your units supposed to turn vulnerable again when they exit the region? If so you could make something like this: Trigger: Trigger: Trigger: I hope it helps. Cheers. |
