addScore: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(locality, seealso)
Line 8: Line 8:
|arg= global |= Arguments in MP
|arg= global |= Arguments in MP


|eff= local |= Effects in MP
|eff= global |= Effects in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


| Add a number to the score of a unit. This score is shown in multiplayer in the "I" screen. Negative values will remove from the score. |= 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. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| unitName '''addScore''' score |= Syntax
| unit '''addScore''' score |= Syntax


|p1= unitName: [[Object]] |= Parameter 1
|p1= unit: [[Object]] |= Parameter 1


|p2= score: [[Number]] |= Parameter 2
|p2= score: [[Number]] |= Parameter 2
Line 23: Line 23:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>player addScore 10</pre> |= Example 1
|x1= <code>unit [[addScore]] 10;</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[score]] |= See also
| [[score]], [[addScoreSide]], [[scoreSide]] |= See also
| mp= Server execution only |


}}
}}

Revision as of 20:47, 5 September 2014

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.
Multiplayer:
Server execution only
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
unit addScore 10;

Additional Information

See also:
scoreaddScoreSidescoreSide

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

This command works only on server (dedicated or hosted) and has global effect, when used on client it has no effect in ArmA 2 (ver. 1.2).

Bottom Section