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.