Warning: file_put_contents(/ff_58c209978240cd0d0a2a59139cb58c35d4c3edb11dc090a7.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
addRating - OFPEC Scripting Command Reference | OFPEC The Editing Center

unitName addRating number

Operand types

unitName: Object
number: Number

Type of returned value


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.

Used In



player addRating 1000