unlockAchievement: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(39 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2 | | |game1= arma2 | ||
|version1= 1.00 | |||
|1. | |game2= arma2oa | ||
|version2= 1.50 | |||
| | |game3= tkoh | ||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
| | |gr1= Broken Commands | ||
| | |gr2= System | ||
| [[ | |descr= 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> | ||
{{Feature|important| | |||
This command is obsolete and was used in the experimental (unreleased) {{arma2}} Xbox 360 version as stated | |||
{{Link|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]].}} | |||
| | |s1= [[unlockAchievement]] name | ||
|p1= name: [[String]] - achievement name | |||
|[[ | |r1= [[Boolean]] - [[true]] if achievement was unlocked | ||
| | |x1= <sqf>_isUnlocked = unlockAchievement "Hunter";</sqf> | ||
|seealso= [[setStatValue]] | |||
}} | }} | ||
Latest revision as of 12:07, 5 May 2024
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