WoW API: UnitPlayerOrPetInParty

From AddOn Studio
Revision as of 14:36, 23 August 2006 by WoWWiki>Tux453
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < UnitPlayerOrPetInParty

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

isTrue = UnitPlayerOrPetInParty("arg1")

Parameters

Arguments

arg1
String - Unit who should be checked

Returns

isTrue
1 or nil

Example

local TargetInParty = UnitPlayerOrPetInParty("target")

Result

TargetInParty = 1   - If your target is in your raid group.
TargetInParty = nil - If your target is not in raid group.