vitaliy0001 10 Posted August 13, 2021 Is there any way to have the renegade system function discriminately, based on the side you shoot? E.g. if the player is civilian, I want to start the mission where the player is friendly to both East and West. Then I want this to change based on the side they shoot. Essentially to have two addRatings against each side. Share this post Link to post Share on other sites
sarogahtyp 1108 Posted August 13, 2021 Idk what you mean with two addRatings but side relations can be set up with: https://community.bistudio.com/wiki/setFriend Share this post Link to post Share on other sites
vitaliy0001 10 Posted August 14, 2021 If setFriend is the appropriate method, then I need a function that works something like this: Identify side killed (East or West) Get the addRating received for the kill If side killed is East, add the rating to variable "A" If side killed is West, add the rating to variable "B" If "A" <-2000, player setFriend [West, 1] If "B" <-2000, player setFriend [East, 1] If "A" and "B" <-2000, setFriend [West, 0] setFriend [East, 0] If the above logic is correct, how do I: 1. Determine which side was killed 2. Extract the rating delta ? Share this post Link to post Share on other sites
pierremgi 4890 Posted August 14, 2021 This problem is not easy and I've chosen another way (building a module) : count enemy or friendly units killed. If you try to play with rating, the only thing you can say is that a player is renegade if his rating is < -2000, no matter the setFriend (which only works for sides, btw) this player becomes enemy of any unit (he is no more in group and his side is now sideEnemy (no more west or east...) There is an event handler : handleRating but there is no real usage with that in your case. So, think about a count for killed units. Share this post Link to post Share on other sites
vitaliy0001 10 Posted August 17, 2021 Thanks Pierre. I'll try to count the killed units and neutralise the rating somehow. Share this post Link to post Share on other sites