Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:

Checks the unit rating.

Rating is increased for killing enemies, and decreased for killing friendlies. Can be changed, using addRating. The rating of the player is displayed as the "score" at the end of the mission. Using description.ext (see Scripting with description.ext in the VBS3 Scripting Manual), one can define how many points it takes to get a perfect score, as well as the number of stars.

Syntax

Syntax:rating unit
Parameters:
  • unit: Object - Unit to check.
Return Value:Number

Examples

Examples:_score = rating player;

Additional Information

See also: addRating, rank
Multiplayer:
Problems:

Notes