Civilian hostility change

  1. 8 years ago

    Just on this, what's the hostility "scale"? I assume the code

    [getPos player, [side player], 20] call ALIVE_fnc_updateSectorHostility;

    adds 20 points to the scale but what are the break points? At what point will they pick up weapons and start shooting insurgents? (Or you for that matter) or have I got this totally wrong? (Absolute probability)

    Also (and bare in mind I only just started messing around with a server 2 days ago), when you say the code must be run on the server how do I ensure that?

  2. I've added a "rehabilitation area" to my base which has like 6 small military building surrounded by a barbed wire fence and guards, ummm I mean "Protection Officers". The idea is that we arrest insurgents and "detain" them in this facility.

    I was thinking I could cover the area with a trigger which repeatably fires every 2 hours and drops their hostility level bit by bit so after say 6-10 hours of reprogramming errrrr I mean rehabilitation they're happy civilians again and are automatically released (or just teleported out?)

    Then I realised I have no idea what I'm doing.

    Could I just put something like

    [getPos trigger1, [side player], -20] call ALIVE_fnc_updateSectorHostility;

    in the on activation part of the trigger, and then use a second trigger to setCaptive false and release them once they're back to being civilians.

    That's a point do they actually swap sides when they become insurgents?