VehicleBlacklist issue (SOLVED)

  1. 8 years ago
    Edited 8 years ago by Blaazouille

    Hello,

    I don't know why, but I'm not able to use ALiVE_PLACEMENT_CUSTOM_VEHICLEBLACKLIST correctly.

    What I'm trying to do :

    Blacklist some default civilians vehicles from ambient vehicles.

    How I do it :

    I create a staticData.sqf :

    ALiVE_MIL_CQB_CUSTOM_UNITBLACKLIST = 
    [
    "C_Van_01_transport_F",
    "C_Van_01_box_F",
    "C_Van_01_fuel_F",
    ...
    ];

    I add this line to my init.sqf

    call compile preprocessFile "staticData.sqf";

    What happen :

    Random vehicles from the chosen faction (RDS A2 Civilian Pack) spawn including blacklisted vehicles.

  2. Edited 8 years ago by SpyderBlack723

    I can't be positive it's not the reason it's working, but in order to have staticData overrides work you have to wait until ALiVE is done initializing first.

    To do this you need to use spawn instead of call
    spawn compile preprocessFile "staticData.sqf";

    and then add this line at the very top of your staticData.sqf

    waitUntil {!isnil "ALiVE_STATIC_DATA_LOADED"}:
  3. Oh right. Wiki is outdated I think.
    Thanks for the advice, I'll try this when I'm back from work.

  4. Marking this as solved for now. Please post if that is not the case.

 

or Sign Up to reply!