World of Warcraft Forever API · C_PlayerInteractionManager.md, for your AI
C_PlayerInteractionManager
8 functions, 2 events, 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_PlayerInteractionManager.ClearInteraction
C_PlayerInteractionManager.ClearInteraction([type])
Arguments
type | PlayerInteractionType may be nil |
|---|
C_PlayerInteractionManager.ConfirmationInteraction
C_PlayerInteractionManager.ConfirmationInteraction([type])
Arguments
type | PlayerInteractionType may be nil |
|---|
C_PlayerInteractionManager.InteractUnit
success = C_PlayerInteractionManager.InteractUnit(unit, [exactMatch], [looseTargeting])
Arguments
unit | string | |
|---|---|---|
exactMatch | bool default false | |
looseTargeting | bool default true |
Returns
success | bool |
|---|
C_PlayerInteractionManager.IsInteractingWithNpcOfType
interacting = C_PlayerInteractionManager.IsInteractingWithNpcOfType(type)
Arguments
type | PlayerInteractionType |
|---|
Returns
interacting | bool |
|---|
C_PlayerInteractionManager.IsReplacingUnit
replacing = C_PlayerInteractionManager.IsReplacingUnit()
Returns
replacing | bool |
|---|
C_PlayerInteractionManager.IsValidNPCInteraction
isValidInteraction = C_PlayerInteractionManager.IsValidNPCInteraction(type)
Arguments
type | PlayerInteractionType |
|---|
Returns
isValidInteraction | bool |
|---|
C_PlayerInteractionManager.ReopenInteraction
C_PlayerInteractionManager.ReopenInteraction()
C_PlayerInteractionManager.ShardTransferConfirm
C_PlayerInteractionManager.ShardTransferConfirm()
Events
PLAYER_INTERACTION_MANAGER_FRAME_HIDE
type | PlayerInteractionType |
|---|
PLAYER_INTERACTION_MANAGER_FRAME_SHOW
type | PlayerInteractionType |
|---|