CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on Get Coordinates of current position
    You could use LibSurveyor for this...

    Something like this will then work:

    function YourAddon.OnLoad()
    RegisterEventHandler(SystemData.Events.PLAYER_POSITION_UPDATED, "YourAddon.OnPlayer_Position_Updated")
    end

    function YourAddon.OnPlayer_Position_Updated()
    local x = LibSurveyor.PlayerLocation.zoneX
    local y = LibSurveyor.PlayerLocation.zoneY
    local z = GetZoneName(GameData.Player.zone)
    d("Current position: " .. z .. " at " .. x .. ", " .. y)
    end
    Posted in: Development Help
  • To post a comment, please or register a new account.