Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitPlayerOrPetInRaid

Last wiki revision 2023-08-13

Returns true if a different unit or pet is a member of the raid. inRaid = UnitPlayerOrPetInRaid(unit)

  • unit: : UnitId
  • inRaid:
  • Returns nil for player and pet as of 3.0.2

local TargetInRaid = UnitPlayerOrPetInRaid("target")

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

Source

https://warcraft.wiki.gg/wiki/API_UnitPlayerOrPetInRaid · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.