BIS fnc addScore: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Added description and examples to page.)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| ''N/A'' |= Description
| Adds a set amount of points to the score of a unit ''(MP only)'' |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_addScore]]; --> |= Syntax
| [object, number] call [[BIS_fnc_addScore]] |= Syntax


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


| |= Return value
| [[Number]] - Score added to unit |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| |= See also
| [[addScore]] |= See also
 
}}
}}



Revision as of 21:52, 28 September 2014


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:
Uncategorised

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

Notes

Bottom Section