WoW API: UnitInParty

From AddOn Studio
Revision as of 23:11, 12 July 2006 by WoWWiki>Bdkmpss (Sry for those mass editing, hope this is fine now)
Jump to navigation Jump to search

WoW API < UnitInParty

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") always returns false. (since patch 1.11.2, always returned 1 before)