Returns whether a party/raid member is assigned a specific group role


See also Party functions, Raid functions.

Signature:

isAssigned = GetPartyAssignment("assignment", "unit") or GetPartyAssignment("assignment", "name" [, exactMatch])

Arguments:

  • assignment - A group role assignment (string)

    • MAINASSIST - Return whether the unit is assigned the main assist role
    • MAINTANK - Return whether the unit is assigned 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)

Returns:

  • isAssigned - 1 if the unit is assigned the specified role; otherwise nil (1nil)