Wikia

WoWWiki

Changes: API UnitPlayerOrPetInRaid

Edit

Back to page

("arg1" -> "unitId")
(Returns)
 
Line 15: Line 15:
 
<!-- List each return value, together with its type -->
 
<!-- List each return value, together with its type -->
 
:;isTrue : 1 or nil
 
:;isTrue : 1 or nil
  +
  +
Note: returns nil for player and pet as of 3.0.2
   
 
== Example ==
 
== Example ==

Latest revision as of 22:58, January 12, 2009

WoW API < UnitPlayerOrPetInRaid

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

isTrue = UnitPlayerOrPetInRaid("unit")

Parameters Edit

Arguments Edit

"unit" 
String - unitId who should be checked

Returns Edit

isTrue 
1 or nil

Note: returns nil for player and pet as of 3.0.2

Example Edit

local TargetInRaid = UnitPlayerOrPetInRaid("target")

ResultEdit

TargetInRaid = 1   - If your target is in your raid group.
TargetInRaid = nil - If your target is not in raid group.

Around Wikia's network

Random Wiki