WoW API: UnitInRaid

Revision as of 10:30, 5 December 2013 by 85.136.139.160 (talk)

WoW API < UnitInRaid

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

raidIndex = UnitInRaid("unit")

Arguments

unit
String - unitId to check.

Returns

raidIndex
RaidIndex of "unit" if she is in your raid group, otherwise nil.

Example

print("Your target is " .. (UnitInRaid("target") and "" or "not ") .. "in your raid group.")


Details

  • The return value is the same index used to retrieve information about raid members using API GetRaidRosterInfo.
  • Pets are not considered to be part of your raid group.
  • While in a battleground, this function returns information about your battleground group.

See also