View Single Post
09-10-16, 08:42 PM   #3
Oniya
A Wyrmkin Dreamwalker
Join Date: Feb 2015
Posts: 57
Originally Posted by elcius View Post
Don't use GetWorldLocFromMapPos, it doesn't work correctly, just calculate the world position manually:
Code:
local f,x1,y1,x2,y2 = GetCurrentMapDungeonLevel();
local px,py = GetPlayerMapPosition("player");
local worldx, worldy = x1+(x2-x1)*px, y1+(y2-y1)*py;
Thank you ^^

If we in city or in Open world - what change for GetCurrentMapDungeonLevel()? - as it can return null value for x2,y2
  Reply With Quote