Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns information about the comparison unit's achievements.
completed, month, day, year = GetAchievementComparisonInfo(achievementID)
Arguments[]
- achievementID
- number - ID of the achievement to retrieve information for.
Returns[]
- completed
- boolean - Returns true/false depending on whether the unit has completed the achievement or not.
- month
- number - Month in which the unit has completed the achievement. Returns nil if completed is false.
- day
- number - Day of the month in which the unit has completed the achievement. Returns nil if completed is false.
- year
- number - Year (two digits, 21st century is assumed) in which the unit has completed the achievement. Returns nil if completed is false.
Details[]
- Only accurate after the after SetAchievementComparisonUnit is called and the INSPECT_ACHIEVEMENT_READY event has fired.
- Inaccurate after ClearAchievementComparisonUnit has been called.
Patch changes[]
Patch 3.0.2 (2008-10-14): Added.
See also[]
- ClearAchievementComparisonUnit
- SetAchievementComparisonUnit
- GetNumComparisonCompletedAchievements