addRating: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
[[Category:Scripting Commands OFP 1.46|A]]
[[Category:Scripting Commands OFP 1.46|A]]
[[Category:Scripting Commands ArmA|A]]
[[Category:Scripting Commands ArmA|A]]
back to [[Scripting_Reference#A|COMREF]]





Revision as of 11:26, 23 April 2006


unit addRating number


Operand types:

unit: Object

number: Number

Type of returned value:

Nothing

Description:

Add number to unit rating.

This is usually used to reward for completed mission objectives.

Rating for killed enemies and killed friendlies is adjusted automatically.

When rating is lower than zero, unit is consider "renegade" and is enemy to everyone.


Example:

player addRating 1000