Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

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

isTrue = UnitInParty("arg1")

Parameters

Arguments

arg1
String - Unit who should be checked

Returns

isTrue
1 or nil

Example

local TargetInParty = UnitInParty("target")

Result

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

Details

Pets are not considered to be part of your party.
UnitInParty("player") should return false. (since patch 1.11.2, always returned 1 before)
Bug: As of 1.11.2(5464), this function returns nil for UnitInParty("player"), possibly due to the function being defined both as a C and LUA function for reasons unknown.