UnitSetRole

From Warcraft Wiki
Jump to navigation Jump to search

Sets a unit's role in the group.

result = UnitSetRole(unit [, roleStr])

Arguments

unit
string : UnitToken
roleStr
string? : ["TANK", "HEALER", "DAMAGER", "NONE"]

Returns

result
boolean

Details

  • It's not possible to assign roles to classes that are not capable of fulfilling that role.