I thought I'd trigger it if it's X value was say under 10 or over 240, or Y value was under 10 or over 240 but I haven't found a way to get the unit's x or y position https://9apps.ooo/. So maybe a distance check to map edge, but how is that setup? Or is there a better way?
What's the best way to do this?
I thought I'd trigger it if it's X value was say under 10 or over 240, or Y value was under 10 or over 240 but I haven't found a way to get the unit's x or y position https://9apps.ooo/ . So maybe a distance check to map edge, but how is that setup? Or is there a better way?
Hello,
Solution 1 :
Use an Event "Unit Enters/Leaves Region".
Convert the region into a Rectangle Region.
Look at the attached image.
Do the math.
Then, in Actions, remove the triggering unit.
Solution 2 :
Place a region in the Terrain Editor.
In trigger, on init map, use "Set Camera Bounds" with the new region and "do" the minimap bounds too.
Create a new trigger, add an Event "Unit Enters/Leaves Region" with the new region.
Then, in Actions, remove the triggering unit.
Have a nice day.