WoW:API GetCurrentMapAreaID: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with "  {{wowapi}} __NOTOC__ areaid = GetCurrentMapAreaID(); Returns the area ID of the current world map. ---- ;''Arguments'' :''none'' ---- ;''Returns'' :areaid :;areaid : I…")
 
m (Move page script moved page API GetCurrentMapAreaID to API GetCurrentMapAreaID without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{wowapi}}__NOTOC__
{{wowapi}} __NOTOC__
Returns the area MapID of the current world map.


  areaid = GetCurrentMapAreaID();
  mapID, isContenent = GetCurrentMapAreaID()


Returns the area ID of the current world map.
== Returns ==
* mapID (number) - map ID of the current map
* isContenent (boolean) - if is a top most map area that itself does not have POI


----
== Details ==
;''Arguments''
Return value can be used with [[API SetMapByID|SetMapByID(id)]].


:''none''
== See also ==
 
*[[API_GetQuestWorldMapAreaID|GetQuestWorldMapAreaID]]
----
*[[API_GetMapNameByID|GetMapNameByID]]
;''Returns''
 
:areaid
:;areaid : Integer - area id of the current map. 
 
----
;''Details''
 
Return value can be used with [[API SetMapByID |SetMapByID(id) ]].

Latest revision as of 04:45, 15 August 2023

WoW API < GetCurrentMapAreaID

Returns the area MapID of the current world map.

mapID, isContenent = GetCurrentMapAreaID()

Returns[edit]

  • mapID (number) - map ID of the current map
  • isContenent (boolean) - if is a top most map area that itself does not have POI

Details[edit]

Return value can be used with SetMapByID(id).

See also[edit]