unlockAchievement: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +" to " ")
m (Text replacement - " \| *(\[\[[a-zA-Z0-9]+\]\][^ ]+) *\|x1=" to " |r1= $1 |x1=")
Line 27: Line 27:
|p1= name: [[String]] - achievement name
|p1= name: [[String]] - achievement name


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


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

Revision as of 14:20, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Broken CommandsSystem

Syntax

Syntax:
Syntax needed
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