Returns whether a unit is a player unit in the player's party. Always returns 1 for the player
unit. Returns nil for the player's or party members' pets.
See also Unit functions, Party functions.
Signature:
inParty
=
UnitInParty("unit")
or
UnitInParty("name")
Arguments:
unit
- A unit to query (string
, unitID)name
- The name of a unit to query (string
)
Returns:
inParty
- 1 if the unit is a player unit in the player's party; otherwise nil. (1nil
)