WowAddons

World of Warcraft Forever API · C_RestrictedActions.md, for your AI

C_RestrictedActions

4 functions, 5 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_RestrictedActions.CheckAllowProtectedFunctions

protectedFunctionsAllowed = C_RestrictedActions.CheckAllowProtectedFunctions(object, [silent])

Returns true if the calling context has permissions to call protected functions on the supplied object.

Arguments

objectFrameScriptObject
silentbool default falseIf true, don't signal blocked action errors if protected function calls are disallowed.

Returns

protectedFunctionsAllowedbool

C_RestrictedActions.GetAddOnRestrictionState

state = C_RestrictedActions.GetAddOnRestrictionState(type)

Returns the current state of an addon restriction type.

Arguments

typeAddOnRestrictionType

Returns

stateAddOnRestrictionState

C_RestrictedActions.InCombatLockdown

inCombatLockdown = C_RestrictedActions.InCombatLockdown()

Returns

inCombatLockdownbool

C_RestrictedActions.IsAddOnRestrictionActive

active = C_RestrictedActions.IsAddOnRestrictionActive(type)

Returns true if an addon restriction type is in an active state. Will always return false during dispatch of ADDON_RESTRICTION_STATE_CHANGED.

Arguments

typeAddOnRestrictionType

Returns

activebool

Events

ADDON_ACTION_BLOCKED

isTaintedcstring
functioncstring

ADDON_ACTION_FORBIDDEN

isTaintedcstring
functioncstring

ADDON_RESTRICTION_STATE_CHANGED

Fired when the state of an addon restriction type is changing. This event is sequenced such that it will always be fired before a restriction becomes active, or after it is deactivated.

typeAddOnRestrictionType
stateAddOnRestrictionState

MACRO_ACTION_BLOCKED

functioncstring

MACRO_ACTION_FORBIDDEN

functioncstring

Dafür brauchst du WowAddons

Kostenlos, für Windows, macOS und Linux: Es packt das Addon mit einem Klick in dein Spiel und hält es aktuell. Öffne es einmal und drück dann nochmal auf Installieren.

WowAddons läuft auf deinem Computer: Öffne wowaddons.gg dort.

Für Windows herunterladen