rating: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
m (Text replacement - "|= Game name" to "|Game name=")
(40 intermediate revisions by 16 users not shown)
Line 1: Line 1:
<h2 style="color:#000066">'''rating ''unit'''''</h2>
{{Command|Comments=
____________________________________________________________________________________________


'''Operand types:'''
| ofp |Game name=


unit: [[Object]]
|1.00|Game version=


'''Type of returned value:'''
|arg= global |Multiplayer Arguments=
____________________________________________________________________________________________


[[Number]]
| Check unit rating. Rating is increased for killing enemies, decreased for killing friendlies (see [[ArmA:_Rating Values|Rating Values]]). Can be changed via [[addRating]] by the mission designer.


'''Description:'''
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.|DESCRIPTION=
____________________________________________________________________________________________


Check unit rating. Rating is increased for killing enemies, decreased for killing friendlies, can be changed by mission designer.
| [[Number]] <nowiki>=</nowiki> '''rating''' unitName|SYNTAX=


'''Example:'''
|p1= unitName: [[Object]] |PARAMETER1=


_score = '''rating''' player
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_score <nowiki>=</nowiki> '''rating''' [[player]] </code> |EXAMPLE1=
____________________________________________________________________________________________


'''Comments'''
| [[Side relations]], [[ArmA: Rating Values]], [[addRating]], [[rank]], [[setUnitRank]] |SEEALSO=


''Macguba''
}}


Use [[addRating]] to change the rating of a unit.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


''General Barron''
<dt class="note">Unknown
<dd class="note">In ArmA 1.18 rating does only return rating levels for units that are local.


The rating of the player is displayed as the "score" at the end of the mission.
<!-- Note Section END -->
In the [[description.ext]], you define how many points it takes to get a perfect score, and all those pretty gold stars.
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|RATING]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|RATING]]
[[Category:Scripting Commands OFP 1.46|RATING]]
[[Category:Scripting Commands ArmA|RATING]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]

Revision as of 16:32, 1 September 2019

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:
Uncategorised

Syntax

Syntax:
Number = 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

Notes

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

Bottom Section