WoW API: UnitPlayerOrPetInParty
Jump to navigation
Jump to search
← 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")
Result[edit]
TargetInParty = 1 - If your target is in your party TargetInParty = nil - If your target is not in party