rating: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 36: Line 36:
The rating of the player is displayed as the "score" at the end of the mission.
The rating of the player is displayed as the "score" at the end of the mission.


In the [[description.ext]], you define how many points it takes to get a perfect score, and all those pretty gold stars.
In the [[Description.ext|description.ext]], you define how many points it takes to get a perfect score, and all those pretty gold stars.

Revision as of 14:54, 22 April 2006


back to COMREF

rating unit


Operand types:

unit: Object

Type of returned value:

Number

Description:

Check unit rating.

Rating is increased for killing enemies, decreased for killing friendlies, can be changed by mission designer.


Example:

_score = rating player


Comments

Use addRating to change the rating of a unit.


The rating of the player is displayed as the "score" at the end of the mission.

In the description.ext, you define how many points it takes to get a perfect score, and all those pretty gold stars.