C_Map. GetMapPosFromWorldPos
functionimplementedavailable in: camelot
Translates a world map position to a map position.
function C_Map.GetMapPosFromWorldPos( continentID: number, worldPosition: Vector2DMixin, overrideUiMapID: number?): (number?, Vector2DMixin?)Parameters
| name | type | description |
|---|---|---|
continentID | number | InstanceID of the continent |
worldPosition | Vector2DMixin | |
overrideUiMapID | number? | If you don't set this to the map that you want a relative position in, it defaults to the mapID for the player's continent, essentially normalizing world coordinates (i.e. 478.1,598.2) into continent map coordinates (i.e. 0.44,0.61) |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | uiMapID | number? | UiMapID |
| 2 | mapPosition | Vector2DMixin? |
Blizzard's documentation says it may return nothing.
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (MapUI system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.