WoW:API UnitInRaid: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | {{wowapi}} __NOTOC__ | ||
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 == | == Example == | ||
if UnitInRaid("target") then | |||
print(UnitName("target") .. " is in your raid group."); | |||
end | |||
==Details== | ==Details== | ||
: 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. | |||
Revision as of 21:28, 30 July 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.