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) - GetNormalizedWorldPosShort excerpt from the shipping addon HarvestMap — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| HarvestMap | 9,454,533 |
| LibGPS | 4,027,526 |
| OdySupportIcons - Group Role Icons & More | 484,590 |
| ResourceRadar | 103,756 |
| Lights of Meridia | 90,016 |
| MasterThief | 85,120 |