rating: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (add. link)
Line 3: Line 3:
[[Category:Scripting Commands OFP 1.46|RATING]]
[[Category:Scripting Commands OFP 1.46|RATING]]
[[Category:Scripting Commands ArmA|RATING]]
[[Category:Scripting Commands ArmA|RATING]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]


{{Command|= Comments
{{Command|= Comments
Line 12: Line 13:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


Line 25: Line 26:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[addRating]] |= See also
| [[addRating]], [[rank]] |= See also


}}
}}
Line 45: Line 46:


<dd class="note">In '''OFP v1.96''', if a unit's rating drops below -2000, it will be considered enemy and attacked by all units.</dd>
<dd class="note">In '''OFP v1.96''', if a unit's rating drops below -2000, it will be considered enemy and attacked by all units.</dd>
<dd class="note">A unit's rank changes its starting rating: Private=0, Corporal=500,Sergeant=1500,Lieutenant=2500,Captain=3500,Major=5000,Colonel=7500</dd>
<dd class="note">A unit's [[rank]] changes its starting rating: Private=0, Corporal=500,Sergeant=1500,Lieutenant=2500,Captain=3500,Major=5000,Colonel=7500</dd>


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 02:41, 14 June 2007


Hover & click on the images for description

Description

Description:
Check unit rating. Rating is increased for killing enemies, decreased for killing friendlies (see Rating Scores). Can be changed via addRating by the mission designer.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
_score = rating player

Additional Information

See also:
addRatingrank

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

Posted on August 3, 2006 - 14:04
hardrock
Notes from before the conversion: 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.
Posted on January 9, 2007
Ceeeb
In OFP v1.96, if a unit's rating drops below -2000, it will be considered enemy and attacked by all units.
A unit's rank changes its starting rating: Private=0, Corporal=500,Sergeant=1500,Lieutenant=2500,Captain=3500,Major=5000,Colonel=7500

Bottom Section