---
name: "rating"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/rating
revid: 341627
updated: 2023-06-12T19:02:54Z
---

# rating

*Command · Object Manipulation · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

Locality: arguments **global**

## Description

Check unit rating. Rating is increased for killing enemies, decreased for killing friendlies (see Rating Values). Can be changed via [addRating](../commands/addRating.md) by the mission designer.

The rating of the player is displayed as the "score" at the end of the mission. Via [Description.ext](../topics/Description.ext.md) one can define how many points it takes to get a perfect score, as well as the number of stars.

## Syntax

```sqf
rating unitName
```

**Parameters:**

- `unitName`: [Object](../topics/Object.md)

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
_score = rating player;
```

## See also

Side Relations · ArmA: Rating Values · [addRating](../commands/addRating.md) · [rank](../commands/rank.md) · [setUnitRank](../commands/setUnitRank.md)

## Community notes

**Leo15745** — 2011-01-06

In ArmA 1.18 rating does only return rating levels for units that are local.

<sub>Source: [BI Community Wiki — rating](https://community.bistudio.com/wiki/rating) (revision 341627).</sub>
