Wikia

WoWWiki

API UnitPlayerOrPetInRaid

Talk0
98,472pages on
this wiki
Revision as of 22:58, January 12, 2009 by Xelron (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

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

isTrue = UnitPlayerOrPetInRaid("unit")

Parameters

Arguments

"unit" 
String - unitId who should be checked

Returns

isTrue 
1 or nil

Note: returns nil for player and pet as of 3.0.2

Example

local TargetInRaid = UnitPlayerOrPetInRaid("target")

Result

TargetInRaid = 1   - If your target is in your raid group.
TargetInRaid = nil - If your target is not in raid group.
Advertisement | Your ad here

Photos

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

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki