rating: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (moved command to template)
Line 4: Line 4:
[[Category:Scripting Commands ArmA|RATING]]
[[Category:Scripting Commands ArmA|RATING]]


{{Command|= Comments
____________________________________________________________________________________________


<h2 style="color:#000066">'''rating ''unit'''''</h2>
| ofp |= Game name


|1.00|= Game version
____________________________________________________________________________________________


'''Operand types:'''
| Check unit rating. Rating is increased for killing enemies, decreased for killing friendlies, can be changed by mission designer. |= Description
____________________________________________________________________________________________


'''unit:''' [[Object]]
| '''rating''' unit |= Syntax


'''Type of returned value:'''
|p1= unit: [[Object]] |= Parameter 1


[[Number]]
| [[Number]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_score = rating [[player]] </pre> |= Example 1
____________________________________________________________________________________________


'''Description:'''
|  |= See also


Check unit rating.
}}


Rating is increased for killing enemies, decreased for killing friendlies, can be changed by mission designer.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
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.
<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>
 
_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|description.ext]], you define how many points it takes to get a perfect score, and all those pretty gold stars.

Revision as of 02:56, 3 August 2006


Hover & click on the images for description

Description

Description:
Check unit rating. Rating is increased for killing enemies, decreased for killing friendlies, can be changed by mission designer.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
_score = rating [[player]] 

Additional Information

See also:
See also needed

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

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.

Bottom Section