View Single Post
02/14/19, 06:49 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,043
This is the source code of the game for the keybind which centers the map to the plaer position:
Lua Code:
  1. -- Recenter
  2.             {
  3.                 name = GetString(SI_WORLD_MAP_CURRENT_LOCATION),
  4.                 keybind = "UI_SHORTCUT_SECONDARY",
  5.                 visible = ZO_WorldMap_IsMapChangingAllowed,
  6.                 callback = function()
  7.                     if(SetMapToPlayerLocation() == SET_MAP_RESULT_MAP_CHANGED) then
  8.                         local forceGameSelectedMap = false
  9.                         PlayerChosenMapUpdate(forceGameSelectedMap)
  10.                     end
  11.                     ZO_WorldMap_PanToPlayer()
  12.                 end,
  13.             },

Try to enter this in your chat as the map is opened:
Code:
/script origWorldMapPanToPlayer = ZO_WorldMap_PanToPlayer()  ZO_WorldMap_PanToPlayer() = function() return end
Then try to use/click on the keybind to center the map on your player. Does the map move to your current player's position?
Then try in chat the following script:
Code:
/script origWorldMapPanToPlayer()
Does it move to your position now?

As alternative try this modified version of the "Hide ME v2" addon from this forum thread: https://www.esoui.com/forums/showthr...7089#post37089
Attached Files
File Type: zip HideMe_v3.zip (1.5 KB, 263 views)

Last edited by Baertram : 02/14/19 at 06:58 AM.
  Reply With Quote