I'm wondering if the "unit leaves region" event will fire if I use triggers to move a region so that the unit no longer resides in this region. I'm asking because I have a region that peridocially moves to the location of a specified unit, and I use "unit enters" and "unit leaves" region to set an array of targets in that are currently in region. If I move the region, and the "unit leaves region" event does not fire, this would give false values of units currently in the region...
yea moving the region will fire the event if there's a unit in it, said unit will technically leave the region. even though in reality the region is leaving the unit.
How about using two regions? When you enter on Region1 you spawn Region2. And when you enter Region1 you can move Region2 etc.? This way you avoid that "Unit leaves region" problem.
I'm wondering if the "unit leaves region" event will fire if I use triggers to move a region so that the unit no longer resides in this region. I'm asking because I have a region that peridocially moves to the location of a specified unit, and I use "unit enters" and "unit leaves" region to set an array of targets in that are currently in region. If I move the region, and the "unit leaves region" event does not fire, this would give false values of units currently in the region...
yea moving the region will fire the event if there's a unit in it, said unit will technically leave the region. even though in reality the region is leaving the unit.
How about using two regions? When you enter on Region1 you spawn Region2. And when you enter Region1 you can move Region2 etc.? This way you avoid that "Unit leaves region" problem.
@Terhonator: Go
why not just periodically refill the unit group with the Units In region