setStatValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ")
m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ")
Line 11: Line 11:
For example "ExpWarlockDown" is restricted to scripts in any subdirectory of <tt>"a3\Missions_F_Exp\Campaign\Missions\"</tt>
For example "ExpWarlockDown" is restricted to scripts in any subdirectory of <tt>"a3\Missions_F_Exp\Campaign\Missions\"</tt>


|s1= [[setStatValue]] [name, value]
|s1= [[setStatValue]] [name, value]


|p1= [name, value]: [[Array]]
|p1= [name, value]: [[Array]]

Revision as of 22:29, 19 June 2021

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: Arma 3: Stat Names
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:
System

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:
getStatValueArma 3: Stat Names

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