Assigns a group role to a member of the player's party or raid


See also Party functions, Raid functions.

Signature:

SetPartyAssignment("assignment", "unit") or SetPartyAssignment("assignment", "name" [, exactMatch])

Arguments:

  • assignment - A group role to assign to the unit (string)

    • MAINASSIST - Assign the main assist role
    • MAINTANK - Assign the main tank role

  • unit - A unit in the player's party or raid (string, unitID)

  • name - Name of a unit in the player's party or raid (string)

  • exactMatch - True to check only units whose name exactly matches the name given; false to allow partial matches (boolean)

This function is protected and can only be called by the Blizzard user interface