Civilian Weapons

  1. 6 years ago

    I'm also trying to get different weapons for civs I put

    ALIVE_civilianWeapons = [] call ALIVE_fnc_hashCreate;
    [ALIVE_civilianWeapons, "LOP_TAK_Civ", [["rhs_weap_aks74","rhs_30Rnd_545x39_AK"],["rhs_weap_aks74u","rhs_30Rnd_545x39_AK"],["rhs_weap_akm","rhs_30Rnd_762x39mm"],["rhs_weap_akms","rhs_30Rnd_762x39mm"],["rhs_weap_svd","rhs_10Rnd_762x54mmR_7N1"],["rhs_weap_pkm","rhs_100Rnd_762x54mmR"],["rhs_weap_makarov_pm","rhs_mag_9x18_8_57N181S"],["rhs_weap_rpg7","rhs_rpg7_PG7V_mag"]]] call ALIVE_fnc_hashSet;

    In my staticdata.sqf I have running my my mission and it doesnt seem to work either

  2. Can civilians get launchers thorough civilian weapons? is that whats breaking it?

  3. Not sure myself.. @SpyderBlack723 ?

  4. Do you have

    if (!isServer) exitWith {};
     
    waitUntil {!isNil "ALiVE_STATIC_DATA_LOADED"};

    Above the code you posted?

  5. Edited 6 years ago by Opendome

    Yup my whole file looks like

    if (!isServer) exitWith {};
    
    waitUntil {!isNil "ALiVE_STATIC_DATA_LOADED"};
    
    ALIVE_factionDefaultTransport = [] call ALIVE_fnc_hashCreate;
    [ALIVE_factionDefaultTransport, "LOP_AA", ["LOP_AA_BMP1","LOP_AA_BMP1_C","LOP_AA_BMP2","LOP_AA_BMP2_C","LOP_AA_M1117_D","LOP_AA_M113_C","LOP_AA_M113_D","LOP_AA_M113_W","LOP_AA_Offroad","LOP_AA_Offroad_Police","LOP_AA_M1025_W_M2","LOP_AA_M1025_W_Mk19","LOP_AA_M1025_D","LOP_AA_M998_D_4DR","LOP_AA_Truck","LOP_AA_Ural","LOP_AA_Ural_Open"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultTransport, "INDEP_Taliban", ["I_INDEPTaliban_Land_Rover_01","INDEPTaliban_Hatchback_01","INDEPTaliban_Jeep_01","INDEPTaliban_KamaZ_Transport_01","INDEPTaliban_KamaZ_Transport_Covered_01","INDEPTaliban_Offroad_01","INDEPTaliban_SUV_01","INDEPTaliban_Truck_Cargo_01","INDEPTaliban_Land_Rover_01","INDEPTaliban_UAZ_01","INDEPTaliban_UAZ_Open","INDEPTaliban_BMP_2_01"]] call ALIVE_fnc_hashSet;
    
    ALIVE_factionDefaultAirTransport = [] call ALIVE_fnc_hashCreate;
    [ALIVE_factionDefaultAirTransport, "LOP_AA", ["LOP_AA_Mi24V_AT","LOP_AA_Mi24V_FAB","LOP_AA_Mi24V_UPK23","LOP_AA_Mi8MT_Cargo","LOP_AA_Mi8MTV3_FAB","LOP_AA_Mi8MTV3_UPK23"]] call ALIVE_fnc_hashSet;
    
    ALIVE_factionDefaultSupports = [] call ALIVE_fnc_hashCreate;
    [ALIVE_factionDefaultSupports, "LOP_AA", ["LOP_AA_BM21"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultSupports, "INDEP_Taliban", ["INDEPTaliban_KamaZ_Fuel_01","INDEPTaliban_KamaZ_Repair_01"]] call ALIVE_fnc_hashSet;
    
    ALIVE_factionDefaultSupplies = [] call ALIVE_fnc_hashCreate;
    [ALIVE_factionDefaultSupplies, "LOP_AA", ["rhs_3Ya40_1_single","rhs_7ya37_1_single","rhs_gear_crate","rhs_mags_crate","rhs_weapon_crate","rhs_launcher_crate","rhs_spec_weapons_crate","rhsusf_mags_crate","rhsusf_gear_crate","rhsusf_launcher_crate","rhsusf_weapon_crate"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultSupplies, "INDEP_Taliban", ["rhs_3Ya40_1_single","rhs_7ya37_1_single","rhs_gear_crate","rhs_mags_crate","rhs_weapon_crate","rhs_launcher_crate","rhs_spec_weapons_crate"]] call ALIVE_fnc_hashSet;
    
    ALIVE_civilianWeapons = [] call ALIVE_fnc_hashCreate;
    [ALIVE_civilianWeapons, "LOP_TAK_Civ", [["rhs_weap_aks74","rhs_30Rnd_545x39_AK"],["rhs_weap_aks74u","rhs_30Rnd_545x39_AK"],["rhs_weap_akm","rhs_30Rnd_762x39mm"],["rhs_weap_akms","rhs_30Rnd_762x39mm"],["rhs_weap_svd","rhs_10Rnd_762x54mmR_7N1"],["rhs_weap_pkm","rhs_100Rnd_762x54mmR"],["rhs_weap_makarov_pm","rhs_mag_9x18_8_57N181S"],["rhs_weap_rpg7","rhs_rpg7_PG7V_mag"]]] call ALIVE_fnc_hashSet;
  6. When typing/pasting code here please select all the code then click on the </> icon along the top bar of the message window... makes it easier to read and copy/pasta :)

  7. Edited 6 years ago by HeroesandvillainsOS

    Or just write [code]stuff[/code

    ^^^and close the last bracket. Will look like:

    stuff
  8. Ohhhh thanks!!! Like this? lol

  9. Yep. Very nice.

 

or Sign Up to reply!