API UnitPlayerOrPetInParty

104,532pages on
this wiki
Add New Page
Add New Page Talk0
WoW API < UnitPlayerOrPetInParty

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

isTrue = UnitPlayerOrPetInParty("unit")

Parameters Edit

Arguments Edit

String - unitId who should be checked

Returns Edit

1 or nil

Note: returns nil for player and pet as of 3.0.2

Example Edit

local TargetInParty = UnitPlayerOrPetInParty("target")


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

Also on Fandom

Random Wiki