BIS fnc addScore: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= |p2=" to "|Parameter1= |p2=")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *S([a-z ])" to "$1 - s$2")
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|Comments=
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |Game name=
|gr1= Multiplayer


|1.00|Game version=
|serverExec= server
____________________________________________________________________________________________


| Adds a set amount of points to the score of a unit ''(MP only)'' |DESCRIPTION=
|descr= Adds a set amount of points to the score of a unit ''(MP only)''
____________________________________________________________________________________________


| [object, number] call [[BIS_fnc_addScore]] |SYNTAX=
|s1= [object, number] call [[BIS_fnc_addScore]]


|p1= [[Object]] - Unit to add score to. |Parameter1=
|p1= [[Object]] - unit to add score to.
|p2= [[Number]] - Number of points (score) to add to unit. |=
|p2= [[Number]] - number of points (score) to add to unit.


| [[Number]] - Score added to unit |RETURNVALUE=
|r1= [[Number]] - score added to unit
____________________________________________________________________________________________


|x1= <code>[player,20] call BIS_fnc_addScore;</code> |=
|x1= <sqf>[player,20] call BIS_fnc_addScore;</sqf>
____________________________________________________________________________________________


| [[addScore]] |SEEALSO=
|seealso= [[addScore]]
   
   
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: MP|{{uc:addScore}}]]
[[Category:Functions|{{uc:addScore}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:addScore}}]]

Latest revision as of 16:49, 8 November 2023

Hover & click on the images for description

Description

Description:
Adds a set amount of points to the score of a unit (MP only)
Execution:
call
Groups:
Multiplayer

Syntax

Syntax:
[object, number] call BIS_fnc_addScore
Parameters:
Object - unit to add score to.
Number - number of points (score) to add to unit.
Return Value:
Number - score added to unit

Examples

Example 1:
[player,20] call BIS_fnc_addScore;

Additional Information

See also:
addScore

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