score: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp
|1.00
|version1= 1.00


|game2= ofpe
|game2= ofpe
Line 24: Line 24:
|gr1= Multiplayer
|gr1= Multiplayer


| Returns the person's score in MP.
|descr= Returns the person's score in MP.


|s1= '''score''' unit
|s1= [[score]] unit


|p1= unit: [[Object]]
|p1= unit: [[Object]]


|r1=[[Number]]
|r1= [[Number]]


|x1= <code>_pScore = [[score]] [[player]];</code>
|x1= <sqf>_pScore = score player;</sqf>


|seealso= [[addScore]], [[scoreSide]], [[addScoreSide]], [[getPlayerScores]]
|seealso= [[addScore]] [[scoreSide]] [[addScoreSide]] [[getPlayerScores]]
}}
}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 10:24, 13 May 2022

Hover & click on the images for description

Description

Description:
Returns the person's score in MP.
Groups:
Multiplayer

Syntax

Syntax:
score unit
Parameters:
unit: Object
Return Value:
Number

Examples

Example 1:
_pScore = score player;

Additional Information

See also:
addScore scoreSide addScoreSide getPlayerScores

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note