setStatValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (Text replacement - "|= Game name" to "|Game name=")
Line 2: Line 2:
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|1.18|Game version=
|1.18|Game version=

Revision as of 19:28, 1 September 2019

Hover & click on the images for description

Description

Description:
Sets a value to a given stat.
A list of possible StatNames can be found here: StatNames
Its important to note that most Stats are restricted to scripts and missions in certain paths.
For example "ExpWarlockDown" is restricted to scripts in any subdirectory of "a3\Missions_F_Exp\Campaign\Missions\"
Groups:
Uncategorised

Syntax

Syntax:
setStatValue [name, value]
Parameters:
[name, value]: Array
name: String
value: Number
Return Value:
Boolean

Examples

Example 1:
setStatValue ["ExpWarlockDown", 1]; //Unlocks the "Warlock Down" Steam achivement

Additional Information

See also:
getStatValue

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