rating: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "")
m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ")
Line 30: Line 30:
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.
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.


|s1= '''rating''' unitName
|s1= '''rating''' unitName


|p1= unitName: [[Object]]
|p1= unitName: [[Object]]

Revision as of 22:18, 19 June 2021

Hover & click on the images for description

Description

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.
Groups:
Object Manipulation

Syntax

Syntax:
rating unitName
Parameters:
unitName: Object
Return Value:
Number

Examples

Example 1:
_score = rating player

Additional Information

See also:
Side relationsArmA: Rating ValuesaddRatingranksetUnitRank

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Unknown
In ArmA 1.18 rating does only return rating levels for units that are local.