addRating: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
|arg= local |= Arguments in MP | |||
|eff= global |= Effects in MP | |||
____________________________________________________________________________________________ | |||
| Add a number to the rating of a unit. This command is usually used to reward for completed mission objectives. The rating is given at the end of the mission and is automatically adjusted when killing enemies or friendlies. When the rating gets below zero, the unit is considered "renegade" and is an enemy to everyone.Negative values will remove from the rating. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | unit '''addRating''' rating |= Syntax | ||
|p1= unit: [[Object]] |= Parameter 1 | |||
[[ | |p2= rating: [[Number]] |= Parameter 2 | ||
| [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>addRating 2000</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| [[rating]] |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|ADDRATING]] | |||
[[Category:Scripting Commands OFP 1.96|ADDRATING]] | |||
[[Category:Scripting Commands OFP 1.46|ADDRATING]] | |||
[[Category:Scripting Commands ArmA|ADDRATING]] |
Revision as of 21:56, 1 August 2006
Description
- Description:
- Add a number to the rating of a unit. This command is usually used to reward for completed mission objectives. The rating is given at the end of the mission and is automatically adjusted when killing enemies or friendlies. When the rating gets below zero, the unit is considered "renegade" and is an enemy to everyone.Negative values will remove from the rating.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
addRating 2000
Additional Information
- See also:
- rating
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