Wikia

WoWWiki

API UnitInRaid

Talk0
102,254pages on
this wiki
Revision as of 01:56, December 17, 2009 by Arrek (Talk | contribs)

WoW API < UnitInRaid

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

index = UnitInRaid("unit")

Arguments

unit 
String - unitId to check.

Returns

index 
Layout position for raid members: integer ascending from 0 (which is the first member of the first group).

Example

if UnitInRaid("target") then
 print(UnitName("target") .. " is in your raid group.");
end

Details

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

Around Wikia's network

Random Wiki