setStatValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|PARAMETER1= |p3=" to "|PARAMETER2= |p3=")
Line 8: Line 8:


| Sets a value to a given stat. <br>
| Sets a value to a given stat. <br>
A list of possible StatNames can be found here: [[StatNames]]<br>
A list of possible StatNames can be found here: [[Arma 3 Stat Names]]<br>
Its important to note that most Stats are restricted to scripts and missions in certain paths.<br>
Its important to note that most Stats are restricted to scripts and missions in certain paths.<br>
For example "ExpWarlockDown" is restricted to scripts in any subdirectory of "a3\Missions_F_Exp\Campaign\Missions\"
For example "ExpWarlockDown" is restricted to scripts in any subdirectory of <tt>"a3\Missions_F_Exp\Campaign\Missions\"</tt>
|DESCRIPTION=
|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''setStatValue''' [name, value] |SYNTAX=
| [[setStatValue]] [name, value] |SYNTAX=


|p1= [name, value]: [[Array]] |PARAMETER1=
|p1= [name, value]: [[Array]] |PARAMETER1=
|p2= name: [[String]] |PARAMETER2=
|p2= name: [[String]] |PARAMETER2=


|p3= value: [[Number]] |PARAMETER1=
|p3= value: [[Number]] |PARAMETER3=


| [[Boolean]] |RETURNVALUE=
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>setStatValue ["ExpWarlockDown", 1]; //Unlocks the "Warlock Down" Steam achivement </code> |EXAMPLE1=
|x1= <code>[[setStatValue]] ["ExpWarlockDown", 1]; {{cc|Unlocks the "Warlock Down" Steam achivement}}</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[getStatValue]] |SEEALSO=
| [[getStatValue]], [[Arma 3 Stat Names]] |SEEALSO=
 
}}
}}


Line 39: Line 39:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Revision as of 01:37, 1 February 2020

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

Notes

Bottom Section