unlockAchievement

From Bohemia Interactive Community
Revision as of 18:12, 10 January 2020 by Lou Montana (talk | contribs) (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Unlocks the given achievement. The achievements are listed in CfgAchievements, however none of the currently listed achievements is used in Arma 3, hence the command always returns false.

This command is obsolete and was used in the experimental (unreleased) Arma 2 Xbox 360 version as stated here.
Arma 3
To unlock an Steam Achievement for Arma 3, see setStatValue.
Groups:
Uncategorised

Syntax

Syntax:
unlockAchievement name
Parameters:
name: String - achievement name
Return Value:
Boolean - true if achievement was unlocked

Examples

Example 1:
_isUnlocked = unlockAchievement "Hunter";

Additional Information

See also:
setStatValue

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section