World of Warcraft Forever API · C_Navigation.md, for your AI
C_Navigation
7 functions, 3 events, 1 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_Navigation.GetDistance
distance = C_Navigation.GetDistance()
Returns
distance | number |
|---|
C_Navigation.GetFrame
frame = C_Navigation.GetFrame()
Returns
frame | ScriptRegion may be nil |
|---|
C_Navigation.GetNearestPartyMemberToken
unitToken = C_Navigation.GetNearestPartyMemberToken()
Returns
unitToken | cstring |
|---|
C_Navigation.GetNextWaypointForMap
x, y, waypointDescription = C_Navigation.GetNextWaypointForMap(uiMapID)
May return nothing.
Arguments
uiMapID | number |
|---|
Returns
x | number | |
|---|---|---|
y | number | |
waypointDescription | string |
C_Navigation.GetTargetState
state = C_Navigation.GetTargetState()
Returns
state | NavigationState |
|---|
C_Navigation.HasValidScreenPosition
hasValidScreenPosition = C_Navigation.HasValidScreenPosition()
Returns
hasValidScreenPosition | bool |
|---|
C_Navigation.WasClampedToScreen
wasClamped = C_Navigation.WasClampedToScreen()
Returns
wasClamped | bool |
|---|
Events
NAVIGATION_DESTINATION_REACHED
isWaypoint | bool |
|---|
NAVIGATION_FRAME_CREATED
region | ScriptRegion |
|---|
NAVIGATION_FRAME_DESTROYED
No payload.