score: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
No edit summary |
||
(44 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{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 | |||
|descr= Returns the person's score in MP. | |||
|s1= [[score]] unit | |||
|p1= unit: [[Object]] | |||
|r1= [[Number]] | |||
|x1= <sqf>_pScore = score player;</sqf> | |||
< | |||
|seealso= [[addScore]] [[scoreSide]] [[addScoreSide]] [[getPlayerScores]] | |||
}} | |||
< | {{Note | ||
[[ | |user= Aimgame | ||
|timestamp= 20240309101734 | |||
|text= In MP '''score player''' returns only the score of player in faction he joined first (within one server session). <br/> | |||
I.e. if he first logged for WEST faction and then relogged for another faction, '''score player''' will show his score when he was WEST, no matter what real score is in current faction.<br/> | |||
In this regard it is better to use [[getPlayerScores]]: | |||
<sqf>(getPlayerScores player) select (count (getPlayerScores player) - 1)</sqf> | |||
or | |||
<sqf>(getPlayerScores player) select 5</sqf> | |||
- it will always return the player's actual score in the current faction. | |||
}} |
Latest revision as of 11:17, 9 March 2024
Description
- Description:
- Returns the person's score in MP.
- Groups:
- Multiplayer
Syntax
Examples
- Example 1:
Additional Information
- See also:
- addScore scoreSide addScoreSide getPlayerScores
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
- Posted on Mar 09, 2024 - 10:17 (UTC)
-
In MP score player returns only the score of player in faction he joined first (within one server session).
I.e. if he first logged for WEST faction and then relogged for another faction, score player will show his score when he was WEST, no matter what real score is in current faction.
In this regard it is better to use getPlayerScores:or - it will always return the player's actual score in the current faction.
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Multiplayer