Quantcast WoWInterface - View Single Post - New/changed in build 26522.
View Single Post
05-02-18, 01:20 PM   #6
Fishing Trainer
Seerah's Avatar
WoWInterface Super Mod
Join Date: Oct 2006
Posts: 10,727
Originally Posted by VincentSDSH View Post
Convention of uiMapID being the first parameter? I can't explain it. It's not like you're going to

x, y = C_Map.GetPlayerMapPosition( C_Map.GetBestMapForUnit("player"), "party1"):GetXY()

That'd be a damned weird way to ask "is party1 in the same zone I am?"
Can't you just do this?
Lua Code:
  1. if C_Map.GetBestMapForUnit("player") == C_Map.GetBestMapForUnit("party1") then
  2. .......
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote