- Joined
- Dec 15, 2017
- Messages
- 231
how to make a trigger that uses region to stop a unit from moving? I mean the region will act like a path blocker.
I'm really sorry i didn't notice your reply.Moved to WorldEditor HelpZone, as Triggers & Scripts if you already have existing code.
Is the region staticely, or may it be moved? Maybe creating pathing blockers at borders is a solid solution.
An alternative would periodically to keep track of units in the region, and once they're outside the region (boolean condition) we need to do approrpiate operations... maybe like moving unit a bit closer to center again and ordering "stop". Calcularing the exact border distance would work, too, but it probably not too nice in GUI.
I need the region to act like a pathing blocker that blocks both air and land unit from entering the region, i tried the "Order Unit to Stop Trigger", I'm really bad at triggers and I need help really badly.If it is to stop all units from entering then one can algorithmically fill the pathing of the rect (GUI Region) cell by cell. If it is to stop only certain units it is not possible directly, but one can repel units away from the rect as soon as they enter using SetUnitX/Y on a 0.03 period timer.
One can algorithmically fill the pathing for all cells in the rect to be unpathable.I need the region to act like a pathing blocker that blocks both air and land unit from entering the region
How? lol im really bad at this.One can algorithmically fill the pathing for all cells in the rect to be unpathable.
I'm about to reach the doodad limit that is why I'm trying to find alternatives. Wait, do pathing blockers count as doodads or can the take up space?Does placing pathing blockers for air & ground not work in editor?
I'm using the default editor.Do you use WEX editor? I think there is a "No limits" option.
Follow the instructions. It asks if you want to configure, and you want to, so hit yes and find the right file.How to fix this?