score: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 32: | Line 32: | ||
|r1= [[Number]] | |r1= [[Number]] | ||
|x1= < | |x1= <sqf>_pScore = score player;</sqf> | ||
|seealso= [[addScore]] [[scoreSide]] [[addScoreSide]] [[getPlayerScores]] | |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