Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns true if a different unit or pet is a member of the raid.
inRaid = UnitPlayerOrPetInRaid(unit)
Arguments[]
- unit
- string : UnitId
Returns[]
- inRaid
- boolean
Details[]
- 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.