View Single Post
01/01/22, 04:44 PM   #5
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
Originally Posted by ThatOneGuy789 View Post
what im wanting to do is if i set a player waypoint on the map it will return the X, Y, Z of that waypoint in the world space

i use GetMapPlayerWaypoint() to get that set waypoint which returns a normalized XY but from my testing Y is actually Z and not Y so im not understanding the conversion there.
Why not
local x, y = gps:LocalToGlobal(GetMapPlayerWaypoint())
local z = 0
You can't guess the Z if you don't have the data anyway...
  Reply With Quote