WoW:API UnitGroupRolesAssigned: Difference between revisions

edited for changes in 4.0.1
(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
Anonymous user