OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Morglor9 on 23 Jun 2005, 05:16:34

Title: adjusting the score
Post by: Morglor9 on 23 Jun 2005, 05:16:34
just a *noob* question that i had to put out there: how do u add or subtract from the mission score? i searched the forum and editor depot, but the word score doesn't get any hits on the subject, and "points" brings up a bunch of stuff about waypoints.

anyway, does anyone know the command for altering the score?
Title: Re:adjusting the score
Post by: bardosy on 23 Jun 2005, 07:12:58
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 enemis 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

Title: Re:adjusting the score
Post by: Morglor9 on 25 Jun 2005, 04:01:41
Thank You.