setStatValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
Line 11: Line 11:
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 "a3\Missions_F_Exp\Campaign\Missions\"
|= Description
|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|p1= [name, value]: [[Array]] |= Parameter 1
|p1= [name, value]: [[Array]] |PARAMETER1=
|p2= name: [[String]] |= Parameter 1
|p2= name: [[String]] |PARAMETER1=
|p3= value: [[Number]] |= Parameter 1
|p3= value: [[Number]] |PARAMETER1=


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


| [[getStatValue]] |= See also
| [[getStatValue]] |SEEALSO=


}}
}}

Revision as of 14:48, 7 April 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