Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API UnitPlayerOrPetInParty

From Wowpedia
Jump to: navigation, search

Returns whether a unit is another player in your party or the pet of another player in your party.

inMyParty = UnitPlayerOrPetInParty("unit")

Arguments

unit 
String (unitId) - Unit to check for party membership.

Returns

inMyParty 
Flag - 1 if the unit is another player or another player's pet in your party, nil otherwise.

Notes

  • This function returns nil if the unit is the player, or the player's pet.