WoW:USERAPI GetPlayerBearing: Difference between revisions
Jump to navigation
Jump to search
fixed error in model path (probably due to API change)
(New page: {{localuserfunc}} Returns the player's current facing bearing based on the rotation of the minimap arrow. bearing = GetPlayerBearing(); ==Return values== ; bearing : number [0, 360] - th...) |
(fixed error in model path (probably due to API change)) |
||
| Line 12: | Line 12: | ||
local t = {Minimap:GetChildren()}; -- Becomes garbage | local t = {Minimap:GetChildren()}; -- Becomes garbage | ||
for k, v in pairs(t) do | for k, v in pairs(t) do | ||
if v:IsObjectType("Model") and not v:GetName() and v:GetModel() == " | if v:IsObjectType("Model") and not v:GetName() and v:GetModel() == "interface\\minimap\\minimaparrow.m2" then | ||
obj = v; break; | obj = v; break; | ||
end | end | ||