WoW:API UseEquipmentSet: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Move page script moved page API UseEquipmentSet to API UseEquipmentSet without leaving a redirect) |
(No difference)
|
Latest revision as of 04:47, 15 August 2023
This function is protected, and cannot be called from insecure code while in in combat.
|
This is no longer a part of the World of Warcraft API.
|
Equips items from a specified equipment set.
local setWasEquipped = UseEquipmentSet("name")
Parameters[edit]
Arguments[edit]
- name (string) - equipment set name, e.g. "Damage", "Tank", "PvP" etc.
Returns[edit]
- setWasEquipped (boolean) - true if the set was equipped, nil otherwise. Failure conditions include invalid arguments, and engaging in combat.
Examples[edit]
UseEquipmentSet("Tank")
Equips the equipment set named "Tank".
- Example 2
local name = C_EquipmentSet.GetEquipmentSetInfo(1) local ok = C_EquipmentSet.UseEquipmentSet(name) if ok then print("You're now clad in " .. name); end
Details[edit]
This function does not produce error messages. FrameXML/EquipmentManager.lua provides EquipmentManager_EquipSet("name"), which will provide the player with an error message if the equip action fails (but does not provide you with a return value).
Notes[edit]
- Moved in patch 7.2.0 (2017-03-28) to C_EquipmentSet.UseEquipmentSet.
- Added in Patch 3.0.2 (2008-10-14) as UseEquipmentSet.
|