WoW:API UnitPlayerOrPetInRaid: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
("arg1" -> "unitId")
Line 5: Line 5:


<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
  isTrue = UnitPlayerOrPetInRaid("arg1")
  isTrue = UnitPlayerOrPetInRaid("unit")


== Parameters ==
== Parameters ==
=== Arguments ===
=== Arguments ===
<!-- List each argument, together with its type -->
<!-- List each argument, together with its type -->
:;arg1 : String - Unit who should be checked
:;"unit" : String - [[unitId]] who should be checked


=== Returns ===
=== Returns ===

Revision as of 12:00, 28 August 2006

WoW API < UnitPlayerOrPetInRaid

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

isTrue = UnitPlayerOrPetInRaid("unit")

Parameters

Arguments

"unit"
String - unitId 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.