I'm attempting to find the general world region the player is in, eg if they are in the wilderness plateau near Riften, or are hanging out in the Reach, or skulking about the hotsprings... and I have no clue whats the best way to approach this, or if a method already exists. I do NOT want to modify any cells, for fear of causing CTDs, so I'm wondering if there is a "best practices" way to do this via code? I have several approaches in mind and wanted feedback, or suggestions for better methods I'm not aware of:
1) Make a formlist of landmarks and see which is closest to the player. This is the easiest but least accurate.... I'm 10000 yards from Riften Main gate and 230,000 from Solitude's.... kinda vague.
2) Find the Current worldspace and then the Cell XY. It's accurate enough, However , it's really kind of tedious since i'd have to plot out all the cell ranges I'm interested in. (I could use player XY as a fallback - IS there a cell XY?)
Maybe there's a better way I'm unaware of?