Jump to content

Script to get exterior cell GECK coordinates


GamerRick

Recommended Posts

I put this together to display the cell coordinates of the player in the console (for situations where I would then need to find that same cell in the GECK:

if player.IsInInterior == 0
  set fX_coord to player.getpos x / 4096
  set fY_coord to player.getpos y / 4096
  ;PrintC"Current Cell Coordinates: %2.2f, %2.2f" fX_coord fY_coord
  set fX_coord to floor fX_coord
  set fY_coord to floor fY_coord
  PrintC"Current Cell Coordinates: %2.0f, %2.0f" fX_coord fY_coord
endif

I am wondering if that is the most accurate I can get with it????? It seems to be fairly accurate, but it's hard to tell, since you can't see cell boundaries in game. Not sure if the floor command is right or there should be another way to round up or down to be accurate.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...