addRating: Difference between revisions
Jump to navigation
Jump to search
m (Added SEEALSO) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(68 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| ofp |= | |game1= ofp | ||
|version1= 1.00 | |||
|1.00 | |game2= ofpe | ||
|version2= 1.00 | |||
| | |game3= arma1 | ||
|version3= 1.00 | |||
| | |game4= arma2 | ||
|version4= 1.00 | |||
| | |game5= arma2oa | ||
|version5= 1.50 | |||
|game6= tkoh | |||
|version6= 1.00 | |||
| | |game7= arma3 | ||
|version7= 0.50 | |||
| | |arg= local | ||
| | |eff= global | ||
| | |gr1= Object Manipulation | ||
| [[ | |descr= Add a number to the [[rating]] of a unit - negative values can be used to reduce the rating.<br> | ||
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.<br> | |||
When the rating gets below -2000, the unit's side switches to [[sideEnemy]] and the unit is attacked by everyone. | |||
{{Feature|informative|See also {{Link|ArmA: Armed Assault: Rating Values}} and {{Link|Arma 3: Event Handlers#HandleRating}}.}} | |||
|s1= unitName [[addRating]] rating | |||
|p1= unitName: [[Object]] | |||
|p2= rating: [[Number]] | |||
|r1= [[Nothing]] | |||
< | |x1= <sqf>player addRating 2000;</sqf> | ||
</ | |||
|x2= Set the rating to a specific value: | |||
<sqf> | |||
private _wantedRating = 9001; | |||
player addRating (_wantedRating - rating player); | |||
</sqf> | |||
[[ | |seealso= [[Side Relations]] [[ArmA: Rating Values|Rating Values]] [[rating]] [[rank]] [[setUnitRank]] [[sideEnemy]] | ||
[[ | }} | ||
[[ | |||
[[ | |||
[[ | |||
[[ | |||
Latest revision as of 13:07, 12 March 2024
Description
- Description:
- Add a number to the rating of a unit - negative values can be used to reduce the rating.
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 -2000, the unit's side switches to sideEnemy and the unit is attacked by everyone. - Groups:
- Object Manipulation
Syntax
Examples
- Example 1:
- Example 2:
- Set the rating to a specific value:
Additional Information
- See also:
- Side Relations Rating Values rating rank setUnitRank sideEnemy
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Object Manipulation
- Scripting Commands: Global Effect