Jump to content

Identifying Cell Grid Coordinates in Game.


Recommended Posts

Why isn't Better Console doing this? Does F4SE not make this possible? SKSE could do it. Am I seriously going to have to make an in game cell grid map for yet another game? I thought we were past this. Harrumph.

Edit: Answer is; it does and i'm an idiot. 😳

Link to comment
Share on other sites

Quick lookup reference if your doing XY for NSEW manipulations;


;*******************************************************************

String Function GetMapQuadrant(ObjectReference thisTarget)

String sMapQuadrant 

If(thisTarget != None)

    Float ftargetPosX = thisTarget.GetPositionX()
    Float ftargetPosY = thisTarget.GetPositionY()

    If(ftargetPosX <= 0) && (ftargetPosY >= 0)
        sMapQuadrant = "NW" ;Sanctuary 
    ElseIf(ftargetPosX <= 0) && (ftargetPosY <= 0)
        sMapQuadrant = "SW" ;Natick
    ElseIf(ftargetPosX >= 0) && (ftargetPosY >= 0)
        sMapQuadrant = "NE" ;Costal
    ElseIf(ftargetPosX >= 0) && (ftargetPosY <= 0)
        sMapQuadrant = "SE" ;Warwick
    EndIf
    
EndIf

Return sMapQuadrant 

EndFunction

;*******************************************************************
 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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