unlockAchievement: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= Broken Commands | |gr1= Broken Commands | ||
|gr2= System | |gr2= System | ||
| 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]].<br></br> | | 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]].<br></br> | ||
Line 13: | Line 13: | ||
{{Important | This command is obsolete and was used in the experimental (unreleased) {{arma2}} Xbox 360 version as stated | {{Important | This command is obsolete and was used in the experimental (unreleased) {{arma2}} Xbox 360 version as stated | ||
[https://forums.bohemia.net/forums/topic/187873-unlockachievment-command/?tab{{=}}comments#comment-2978436 here]. }} | [https://forums.bohemia.net/forums/topic/187873-unlockachievment-command/?tab{{=}}comments#comment-2978436 here]. }} | ||
{{Feature|arma3 | To unlock a [[Arma 3 Stat Names|Steam Achievement]] for {{arma3}}, see [[setStatValue]].}} | {{Feature|arma3 | To unlock a [[Arma 3 Stat Names|Steam Achievement]] for {{arma3}}, see [[setStatValue]].}} | ||
| [[unlockAchievement]] name | | [[unlockAchievement]] name | ||
|p1= name: [[String]] - achievement name | |p1= name: [[String]] - achievement name | ||
| [[Boolean]] - [[true]] if achievement was unlocked | | [[Boolean]] - [[true]] if achievement was unlocked | ||
|x1= <code>_isUnlocked = [[unlockAchievement]] "Hunter";</code> | |x1= <code>_isUnlocked = [[unlockAchievement]] "Hunter";</code> | ||
|[[setStatValue]] | |[[setStatValue]] | ||
| | | | ||
}} | }} | ||
Revision as of 11:40, 18 January 2021
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:
_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