score: Difference between revisions

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


| ofp
|game1= ofp
|version1= 1.00


|1.00
|game2= ofpe
|version2= 1.00
 
|game3= arma1
|version3= 1.00
 
|game4= arma2
|version4= 1.00
 
|game5= arma2oa
|version5= 1.50
 
|game6= tkoh
|version6= 1.00
 
|game7= arma3
|version7= 0.50


|gr1= Multiplayer
|gr1= Multiplayer


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


| '''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