Arma 3 Scripting

rating

  • Global argument
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

Command · Markdown · JSON · original wiki page

Description

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

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

Syntax

rating unitName

Parameters:

Returns: Number

Examples

Example 1

_score = rating player;

See also

Side Relations · ArmA: Rating Values · addRating · rank · setUnitRank

Community notes

Leo15745

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