Wikia

WoWWiki

API UnitPlayerOrPetInParty

Talk0
98,468pages on
this wiki

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

isTrue = UnitPlayerOrPetInParty("unit")

Parameters Edit

Arguments Edit

"unit" 
String - unitId who should be checked

Returns Edit

isTrue 
1 or nil

Note: returns nil for player and pet as of 3.0.2

Example Edit

local TargetInParty = UnitPlayerOrPetInParty("target")

ResultEdit

TargetInParty = 1   - If your target is in your party
TargetInParty = nil - If your target is not in party
Advertisement | Your ad here

Photos

Add a Photo
61,981photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki