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…")
 
mNo edit summary
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) ]].

Revision as of 20:50, 15 August 2017

WoW API < GetCurrentMapAreaID

Returns the area MapID of the current world map.

mapID, isContenent = GetCurrentMapAreaID()

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

Return value can be used with SetMapByID(id).

See also