Autogenerated Tasks Filter?

  1. 8 years ago

    Hi all, is it possible to filter some Kind of Tasks to be not generated in mission?
    I mean, when I place the "C2Star" module, is there a way to tell it to never generate Trasport mission for example?

    Or the only way to do that is to Self-Generate tasks during the game?

  2. Edited 8 years ago by HeroesandvillainsOS

    Yes. You can do it by making a staticData.sqf file and calling it in your init.sqf. Spyderblack posted how to do this on Feb 5 in this thread: http://alivemod.com/forum/1676-some-c2istar-questions

    I was trying to find the code on the wiki but I'm not seeing it. I thought it was there.

  3. Edited 8 years ago by SpyderBlack723

    Quick copy and paste from an older post of mine

    --

    Here's how you blacklist certain tasks.

    staticData.sqf should be a file you create in the root of your mission folder

    init.sqf

    execVM "staticData.sqf";

    staticData.sqf

    if (!isServer) exitWith {};
    
    waitUntil {!isNil "ALiVE_STATIC_DATA_LOADED"};
    
    ALIVE_autoGeneratedTasks = ["MilAssault","MilDefence","CivAssault","Assassination","TransportInsertion","DestroyVehicles","DestroyInfantry","SabotageBuilding","InsurgencyPatrol","InsurgencyDestroyAssets"];

    Remove an entry from the array to stop that task from being generated.

    For example, removing MilAssault (first entry) would look like

    ALIVE_autoGeneratedTasks = ["MilDefence","CivAssault","Assassination","TransportInsertion","DestroyVehicles","DestroyInfantry","SabotageBuilding","InsurgencyPatrol","InsurgencyDestroyAssets"];
  4. Thank you so much!
    Didn't find googling!

 

or Sign Up to reply!