addScore: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\|= " to " ")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.00|Game version=
|1.00


|gr1 = Multiplayer |GROUP1=
|gr1 = Multiplayer




Line 16: Line 16:


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


| unit '''addScore''' score |SYNTAX=
| unit '''addScore''' score


|p1= unit: [[Object]] |PARAMETER1=
|p1= unit: [[Object]]


|p2= score: [[Number]] |PARAMETER2=
|p2= score: [[Number]]


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


| [[score]], [[scoreSide]], [[addScoreSide]], [[getPlayerScores]] |SEEALSO=
| [[score]], [[scoreSide]], [[addScoreSide]], [[getPlayerScores]]
| mp= Server execution only |
| mp= Server execution only |



Revision as of 01:04, 18 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