ALLAN 1 Posted November 29, 2012 (edited) Hey, I've been trying to disable the "renegade" status when rating is below -2000. I've got a mission where I'm basically teamkilling, it's an undercover/double agent sort of deal. ive tried running this in random init and onact fields, with no luck. while {alive player} do {_rating = rating player; if (_rating < 10000) then { player addrating 10000; }; }; any suggestions for a noob? Edited November 29, 2012 by ALLAN wrong tags on code Share this post Link to post Share on other sites
cuel 25 Posted November 29, 2012 Put a trigger, repeatedly, condition: rating player < 0 on act: player addRating abs (rating player) Share this post Link to post Share on other sites
ALLAN 1 Posted November 29, 2012 (edited) thanks, i'll give it a shot. what does the abs represent in the onact? ------- edit Yup, works great. I set it to freeze the rating at 5000, the default for this player, just to maintain the stealth aspect. Thanks a lot cuel! Edited November 29, 2012 by ALLAN post test Share this post Link to post Share on other sites
twirly 11 Posted November 30, 2012 http://community.bistudio.com/wiki/abs How far a number is from zero basically..... so abs (-9) = 9 and abs(9) = 9 also. Can use it to convert a negative number to a positive number. Share this post Link to post Share on other sites