WoW API: UnitPlayerOrPetInRaid
Jump to navigation
Jump to search
← WoW API < UnitPlayerOrPetInRaid
Returns 1 if the unit is in your raid group, nil otherwise.
isTrue = UnitPlayerOrPetInRaid("arg1")
Parameters
Arguments
- arg1
- String - Unit who should be checked
Returns
- isTrue
- 1 or nil
Example
local TargetInRaid = UnitPlayerOrPetInRaid("target")
Result
TargetInRaid = 1 - If your target is in your raid group. TargetInRaid = nil - If your target is not in raid group.