Enables comparing achievements/statistics with another player.
Enables comparing achievements/statistics with another player. After a call to this function, the INSPECTACHIEVEMENTREADYevent fires to indicate that achievement/statistic comparison functions will return valid data on the given unit.
Signature:
Code
success = SetAchievementComparisonUnit(unit)
Arguments:
unit - ID of a unit to compare against (unitID)
Returns:
success - 1 if the given unit is a valid unit. (Does not indicate whether the unit exists or can be compared against.) (1nil)