addRating

From Bohemia Interactive Community
Revision as of 13:55, 15 April 2006 by Planck (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

back to COMREF


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