How do I disable "Arrest" and "Search" addActions on civilians?

  1. 8 years ago

    By default, it seems ALIVE adds several actions to civilians in a mission: for group leads, "Gather Intel", "Arrest" and "Search". I don't want these actions. How do I prevent ALIVE from automatically adding these to civilians? I assume there is a function doing this, that I want to disable.

    The only advice I've seen for removing these is to use a time-delayed removeAllActions, which does work for players at the beginning of the mission, but wouldn't help (I think) for JIP players.

    Any advice, please?

    -Ryko

  2. https://dev.withsix.com/projects/cca/wiki/Extended_Eventhandlers

    class Extended_Init_EventHandlers	{
    	 
    	class Civilian_F {
    		
    		class Man {
    	
    			init = "_this call function";
    		
    		};
    	};
    	
    
    };
  3. @DaVidoSS https://dev.withsix.com/projects/cca/wiki/Extended_Eventhandlers

    class Extended_Init_EventHandlers { class Civilian_F { class Man { init = "_this call function"; }; }; };

    To add on to the above post above, here is what you could do.

    Description.ext

    class Extended_Init_EventHandlers {
      class Civilian_F {
        class CAManBase {
    	  init = "_this call compile preprocessFileLineNumbers 'fnc_removeAction.sqf';";
        };
      };
    };

    fnc_removeAction.sqf

    params [["_unit",objNull]];
    
    removeAllActions _unit;
  4. Also, here is a link to the new CBA wiki , which is located on CBA's GitHub page.

 

or Sign Up to reply!