API UnitPlayerOrPetInRaid

104,546pages on
this wiki
Add New Page
Add New Page Talk0
WoW API < UnitPlayerOrPetInRaid

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

isTrue = UnitPlayerOrPetInRaid("unit")

Parameters Edit

Arguments Edit

String - unitId who should be checked

Returns Edit

1 or nil

Note: returns nil for player and pet as of 3.0.2

Example Edit

local TargetInRaid = UnitPlayerOrPetInRaid("target")


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

Also on Fandom

Random Wiki