setArmoryPoints: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 7: Line 6:


|gr1= System |GROUP1=
|gr1= System |GROUP1=
____________________________________________________________________________________________


| Stores passed number into [USERNAME].ArmaXProfile file, where it assigns it as a value to ''armoryPoints'' entry. If entry doesn't exist, it is created.  |DESCRIPTION=
| Stores passed number into [USERNAME].ArmaXProfile file, where it assigns it as a value to ''armoryPoints'' entry. If entry doesn't exist, it is created.  |DESCRIPTION=
____________________________________________________________________________________________


| [[setArmoryPoints]] points |SYNTAX=
| [[setArmoryPoints]] points |SYNTAX=
Line 17: Line 14:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________


|x1= <code>[[setArmoryPoints]] ([[armoryPoints]] + 20);</code>|EXAMPLE1=
|x1= <code>[[setArmoryPoints]] ([[armoryPoints]] + 20);</code>|EXAMPLE1=
Line 23: Line 19:
|x2= <code>[[setArmoryPoints]] 3.14;</code> |EXAMPLE2=
|x2= <code>[[setArmoryPoints]] 3.14;</code> |EXAMPLE2=


____________________________________________________________________________________________


| [[armoryPoints]] |SEEALSO=
| [[armoryPoints]] |SEEALSO=

Revision as of 02:47, 17 January 2021

Hover & click on the images for description

Description

Description:
Stores passed number into [USERNAME].ArmaXProfile file, where it assigns it as a value to armoryPoints entry. If entry doesn't exist, it is created.
Groups:
System

Syntax

Syntax:
setArmoryPoints points
Parameters:
points: Number
Return Value:
Nothing

Examples

Example 1:
setArmoryPoints (armoryPoints + 20);
Example 2:
setArmoryPoints 3.14;

Additional Information

See also:
armoryPoints

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