alternatively, create four game logics called gl_north, gl_south, etc, place them at the edges of the map and use
loon_name dowatch getpos gl_north
that's if you can afford to have four spare game logics in the mission without worrying about lag
THobson's is the 'cleaner' approach.