BIS fnc addScore: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[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 \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Multiplayer | |gr1 = Multiplayer | ||
|serverExec= server | |serverExec= server | ||
| Adds a set amount of points to the score of a unit ''(MP only)'' | | Adds a set amount of points to the score of a unit ''(MP only)'' | ||
| [object, number] call [[BIS_fnc_addScore]] | | [object, number] call [[BIS_fnc_addScore]] | ||
|p1= [[Object]] - Unit to add score to. | |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 | | [[Number]] - Score added to unit | ||
|x1= <code>[player,20] call BIS_fnc_addScore;</code> | |x1= <code>[player,20] call BIS_fnc_addScore;</code> | ||
| [[addScore]] | | [[addScore]] | ||
}} | }} |
Revision as of 22:40, 17 January 2021
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