OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
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
-
Thank You.