• Changes ownership of a unit.

    Parameters

    • whichUnit: Unit<UnitEventMap>

      Unit to modify.

    • whichPlayer: Player<PlayerEventMap>

      The unit's new owner.

    • changeColor: boolean

      True to change unit's accent color to new owner's color, false to leave old color.

    Returns void

    Note

    Reforged: The HP bar will always have the color of its owner player, regardless of changeColor.

    Note

    See: GetOwningPlayer, Player.

Generated using TypeDoc