WoW API: UnitPlayerOrPetInParty

Revision as of 11:59, 28 August 2006 by WoWWiki>Mikk (arg1 -> unitId)

WoW API < UnitPlayerOrPetInParty

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

isTrue = UnitPlayerOrPetInParty("unit")

Parameters

Arguments

"unit"
String - unitId who should be checked

Returns

isTrue
1 or nil

Example

local TargetInParty = UnitPlayerOrPetInParty("target")

Result

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