unlockAchievement: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
Line 29: | Line 29: | ||
|r1= [[Boolean]] - [[true]] if achievement was unlocked | |r1= [[Boolean]] - [[true]] if achievement was unlocked | ||
|x1= < | |x1= <sqf>_isUnlocked = unlockAchievement "Hunter";</sqf> | ||
|seealso= [[setStatValue]] | |seealso= [[setStatValue]] | ||
}} | }} |
Revision as of 10:25, 13 May 2022
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.
- Groups:
- Broken CommandsSystem
Syntax
- Syntax:
- unlockAchievement name
- Parameters:
- name: String - achievement name
- Return Value:
- Boolean - true if achievement was unlocked
Examples
- Example 1:
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