addScore

From Bohemia Interactive Community
Jump to: navigation, search
Introduced in Operation Flashpoint version 1.00Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

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.

Syntax

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

Examples

Example 1:
player addScore 10

Additional Information

Multiplayer:
-
See also:
score

Notes

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

This command works only on server (dedicated or hosted) and has global effect, when used on client it has no effect in ArmA 2 (ver. 1.2).

Bottom Section