Wikia

WoWWiki

API UnitPlayerOrPetInRaid

Talk0
101,680pages on
this wiki
Revision as of 12:00, August 28, 2006 by Mikk (Talk | contribs)

WoW API < UnitPlayerOrPetInRaid

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

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.

Around Wikia's network

Random Wiki