ESODecoded

GetUnitRawWorldPosition

ESO Lua API function — used by 59 of the 3,030 addons we indexed (combined 15,131,009 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetUnitRawWorldPosition(string unitTag)

Returns: integer zoneId, integer worldX, integer worldY, integer worldZ

Real usage — from HarvestMap

	EVENT_MANAGER:RegisterForEvent("LibNodeDetection-Measure", EVENT_PLAYER_ACTIVATED, function()
		local zoneid, x, y, z = GetUnitRawWorldPosition("player")
		local r1 = GetNormalizedWorldPosition(zoneid, x+1000, y, z) - GetNormalizedWorldPos

Short excerpt from the shipping addon HarvestMapits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
HarvestMap9,454,533
LibGPS4,027,526
OdySupportIcons - Group Role Icons & More484,590
ResourceRadar103,756
Lights of Meridia90,016
MasterThief85,120