Fandom

WoWWiki

API UnitPlayerOrPetInParty

104,631pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < UnitPlayerOrPetInParty

Returns 1 if the unit is in your party group, nil otherwise.

isTrue = UnitPlayerOrPetInParty("unit")

Parameters Edit

Arguments Edit

"unit" 
String - unitId who should be checked

Returns Edit

isTrue 
1 or nil

Note: returns nil for player and pet as of 3.0.2

Example Edit

local TargetInParty = UnitPlayerOrPetInParty("target")

ResultEdit

TargetInParty = 1   - If your target is in your party
TargetInParty = nil - If your target is not in party

Also on Fandom

Random Wiki