But you can make a trigger that fires with event: Unit - A Aunit Leaves PlayableMapArea --> Kill TriggeringUnit
I believe you can check this without regions by checking the pathability. If it is not walkable and not flyable, kill the unit.
What unit can go outside the boundary?
Just go with the idea of create region and detects it, and kill, more easy;
- Tresspasing
- Events
- Unit - A unit enters DeadRegion <gen>
- Conditions
- Actions
- Unit - Kill (Triggering unit)