addScore: Difference between revisions

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


| ofp |Game name=
| ofp |Game name=
Line 15: Line 14:


|serverExec= server |=
|serverExec= server |=
____________________________________________________________________________________________


| Add a number to the score of a unit. This score is shown in multiplayer in the "I" ("P" in Arma 3) screen. Negative values will remove from the score. Server execution only. <br><br>
| Add a number to the score of a unit. This score is shown in multiplayer in the "I" ("P" in Arma 3) screen. Negative values will remove from the score. Server execution only. <br><br>
See also: [[Arma_3:_Event_Handlers#HandleScore]]|DESCRIPTION=
See also: [[Arma_3:_Event_Handlers#HandleScore]]|DESCRIPTION=
____________________________________________________________________________________________


| unit '''addScore''' score |SYNTAX=
| unit '''addScore''' score |SYNTAX=
Line 28: Line 25:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>unit [[addScore]] 10;</code> |EXAMPLE1=
|x1= <code>unit [[addScore]] 10;</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[score]], [[scoreSide]], [[addScoreSide]], [[getPlayerScores]] |SEEALSO=
| [[score]], [[scoreSide]], [[addScoreSide]], [[getPlayerScores]] |SEEALSO=

Revision as of 01:10, 17 January 2021

Hover & click on the images for description

Description

Description:
Add a number to the score of a unit. This score is shown in multiplayer in the "I" ("P" in Arma 3) screen. Negative values will remove from the score. Server execution only.

See also: Arma_3:_Event_Handlers#HandleScore
Multiplayer:
Server execution only
Groups:
Multiplayer

Syntax

Syntax:
unit addScore score
Parameters:
unit: Object
score: Number
Return Value:
Nothing

Examples

Example 1:
unit addScore 10;

Additional Information

See also:
scorescoreSideaddScoreSidegetPlayerScores

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