BIS fnc addScore: Difference between revisions
Jump to navigation
Jump to search
Freddo3000 (talk | contribs) m (Add server exec tag) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 9: | Line 8: | ||
|serverExec= server | |serverExec= server | ||
| Adds a set amount of points to the score of a unit ''(MP only)'' |DESCRIPTION= | | Adds a set amount of points to the score of a unit ''(MP only)'' |DESCRIPTION= | ||
| [object, number] call [[BIS_fnc_addScore]] |SYNTAX= | | [object, number] call [[BIS_fnc_addScore]] |SYNTAX= | ||
Line 20: | Line 17: | ||
| [[Number]] - Score added to unit |RETURNVALUE= | | [[Number]] - Score added to unit |RETURNVALUE= | ||
|x1= <code>[player,20] call BIS_fnc_addScore;</code> |EXAMPLE1= | |x1= <code>[player,20] call BIS_fnc_addScore;</code> |EXAMPLE1= | ||
| [[addScore]] |SEEALSO= | | [[addScore]] |SEEALSO= |
Revision as of 22:37, 16 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