rating: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|RATING]]
[[Category:Scripting Commands|RATING]]
[[Category:Scripting Commands OFP 1.97|RATING]]
[[Category:Scripting Commands OFP 1.96|RATING]]
[[Category:Scripting Commands OFP 1.46|RATING]]
[[Category:Scripting Commands OFP 1.46|RATING]]
[[Category:Scripting Commands ArmA|RATING]]
[[Category:Scripting Commands ArmA|RATING]]

Revision as of 22:00, 1 June 2006


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.