Lore archive · Warcraft Wiki, 2023 dump
API UnitInParty
Last wiki revision 2023-08-13
Returns true if the unit is a member of your party. inParty = UnitInParty(unit)
- unit: : UnitId
- inParty: - if the unit is in your party
if UnitInParty("target") then print("Your target is in your party.") else print("Your target is not in your party.") end
- Pets are not considered to be part of your party (but see ).
- Battleground raid/party members are also not considered to be part of your party.
- UnitInParty("player") returns nil when you are not in a party.
- As of 2.0.3, UnitInParty("player") always returns 1, even when you are not in a party.
- UnitInParty("player") should return nil. (since patch 1.11.2, always returned 1 before)
- Use and to determine if you are in a party or raid.
Source
https://warcraft.wiki.gg/wiki/API_UnitInParty · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.