Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API UnitPlayerOrPetInRaid

From WoW Classic Wiki

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.