WoW:API UnitInRaid: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(See also) |
||
| Line 17: | Line 17: | ||
: Pets are not considered to be part of your raid group. | : Pets are not considered to be part of your raid group. | ||
; While in a battleground, this function returns information about your battleground group. | ; While in a battleground, this function returns information about your battleground group. | ||
==See also== | |||
* [[API UnitInParty]] | |||
Revision as of 01:56, 17 December 2009
← 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.