unlockAchievement: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Note setStatValue)
(some more info)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Unlock the given achievement.
| Unlock the given achievement. The Achievements are listed in CfgAchievements, however none of the currently listed in Arma 3 are used hence the command always returns [[false]].<br></br>
 
{{Important | This command is obsolete and non-fonctional and was used in the experimental (unreleased) {{arma2}} Xbox 360 version as stated
{{Important | This command is obsolete and non-fonctional 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]. }}
Line 15: Line 16:
| [[unlockAchievement]] name |SYNTAX=
| [[unlockAchievement]] name |SYNTAX=


|p1= name: [[String]] |PARAMETER1=  
|p1= name: [[String]] - achievement name |PARAMETER1=  


| [[Boolean]] |RETURNVALUE=  
| [[Boolean]] - [[true]] if achievement was unlocked|RETURNVALUE=  




|x1= <code>_isUnlocked = [[unlockAchievement]] "someAchievement";</code> |EXAMPLE1=  
|x1= <code>_isUnlocked = [[unlockAchievement]] "Hunter";</code> |EXAMPLE1=  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 12:35, 29 August 2019

Hover & click on the images for description

Description

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

This command is obsolete and non-fonctional 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:
See also needed

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