Difference between revisions of "getStatValue"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
Line 7: Line 7:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| Returns value of the given [[StatNames| stat]].|DESCRIPTION=
+
| Returns value of the given stat.<br>
 +
A list of possible StatNames can be found here: [[Arma 3 Stat Names]] |DESCRIPTION=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| '''getStatValue''' name |SYNTAX=
+
| [[getStatValue]] name |SYNTAX=
 +
 
 
|p1= name: [[String]] |PARAMETER1=
 
|p1= name: [[String]] |PARAMETER1=
  
Line 16: Line 18:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
   
 
   
|x1= <code>[[getStatValue]] "ExpWarlockDown"; //Checks if the "Warlock Down" Achivement was already aquired </code> |EXAMPLE1=
+
|x1= <code>[[getStatValue]] "ExpWarlockDown"; {{cc|Checks if the "Warlock Down" Achivement was already aquired}}</code> |EXAMPLE1=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [[setStatValue]] |SEEALSO=
+
| [[setStatValue]], [[Arma 3 Stat Names]] |SEEALSO=
 
 
 
}}
 
}}
  
Line 31: Line 32:
  
 
<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:40, 1 February 2020

Hover & click on the images for description

Description

Description:
Returns value of the given stat.
A list of possible StatNames can be found here: Arma 3 Stat Names
Groups:
Uncategorised

Syntax

Syntax:
getStatValue name
Parameters:
name: String
Return Value:
Number (can return Nothing)

Examples

Example 1:
getStatValue "ExpWarlockDown"; // Checks if the "Warlock Down" Achivement was already aquired

Additional Information

See also:
setStatValueArma 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