HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Alternative to Unit Enters Region?

07-02-2009, 11:52 PM#1
Joker
This event is too bugged for me to rely on. i.e. When multiple units enter at the same time, the actions don't always fully run/ or run at all.
07-02-2009, 11:57 PM#2
grim001
Try running what you're trying to do in the filter func. It runs immediately each time a unit enters a region. The conditions and actions run after a 0 sec delay. Blame Blizzard.
07-03-2009, 03:01 AM#3
Joker
Something is very wierd. Moving it didn't seem to fix the problem

What the code does:

I have checkpoints in my map
Unit enters
Unit gets replaced with another
Its CHECK value is passed (This is where it bugs)

The CHECK value somehow gets to default on its own.

Expand JASS:
07-03-2009, 10:32 AM#4
Blubb-Tec
call TriggerRegisterEnterRegion( CreateTrigger(), r, Condition( function IHateJass ) ) this will make your function run 1 time for every rect you have in that region. that means 8 times. take that line out of the loop, and it will only run 1 time whenever a unit enters anywhere in the region.
also, does this mean that your check value gets reset it -1 or to 0 every time?
07-03-2009, 03:02 PM#5
Joker
Nvm, found the problem. Should've known removing units are bad for unit indexers.
07-04-2009, 05:46 AM#6
grim001
Not if you use AutoIndex...