addScore: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|ADDSCORE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|ADDSCORE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|ADDSCORE]]
 
[[Category:Scripting Commands ArmA|ADDSCORE]]
| ofp |= Game name


|1.00|= Game version


<h2 style="color:#000066">'''''unit'' addScore ''score'''''</h2>
|arg= global |= Arguments in MP


|eff= local |= Effects in MP
____________________________________________________________________________________________


'''Operand types:'''
| 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
____________________________________________________________________________________________


'''unit:''' [[Object]]
| unit '''addScore''' score |= Syntax


'''score:''' [[Number]]
|p1= unit: [[Object]] |= Parameter 1


'''Type of returned value:'''
|p2= score: [[Number]] |= Parameter 2


[[Nothing]]
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>player addScore 10</pre> |= Example 1
____________________________________________________________________________________________


'''Description:'''
| [[score]] |= See also


MP only: Add unit score.
}}


This is shown in the "I" MP screen as total.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


player '''addScore''' 10
[[Category:Scripting Commands|ADDSCORE]]
[[Category:Scripting Commands OFP 1.96|ADDSCORE]]
[[Category:Scripting Commands OFP 1.46|ADDSCORE]]
[[Category:Scripting Commands ArmA|ADDSCORE]]

Revision as of 21:56, 1 August 2006

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" screen.Negative values will remove from the score.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
player addScore 10

Additional Information

See also:
score

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