Wikia

WoWWiki

Changes: API UnitGroupRolesAssigned

Edit

Back to page

(Initial version)
 
(edited for changes in 4.0.1)
 
Line 3: Line 3:
 
Returns the assigned role in a group formed via the Dungeon Finder Tool.
 
Returns the assigned role in a group formed via the Dungeon Finder Tool.
 
<!-- 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 -->
isTank, isHeal, isDPS = UnitGroupRolesAssigned(Unit);
+
role = UnitGroupRolesAssigned(Unit);
   
 
== Arguments ==
 
== Arguments ==
 
<!-- List each argument, together with its type -->
 
<!-- List each argument, together with its type -->
;Unit : String - the unit to be queried (player, party1 .. party4)
+
;Unit : String - the unit to be queried (player, party1 .. party4, target, raid1 .. raid40)
   
 
== Returns ==
 
== Returns ==
 
<!-- List each return value, together with its type -->
 
<!-- List each return value, together with its type -->
;isTank : Boolean - true for the player being assigned the tank role
+
;role : String - TANK, HEALER, DAMAGER, NONE
;isHeal : Boolean - true for the player being assigned the healer role
 
;isDPS : Boolean - true for the player being assigned a dps role
 

Latest revision as of 23:59, October 15, 2010

WoW API < UnitGroupRolesAssigned

Returns the assigned role in a group formed via the Dungeon Finder Tool.

 role = UnitGroupRolesAssigned(Unit);

Arguments Edit

Unit 
String - the unit to be queried (player, party1 .. party4, target, raid1 .. raid40)

Returns Edit

role 
String - TANK, HEALER, DAMAGER, NONE

Around Wikia's network

Random Wiki