Greenfor Faction modification #1563
Answered
by
Vdauphin
SOF-Ice
asked this question in
Question and answer
-
Hi Vdauphin, I would like to add and remove some classname into a faction: ION PMC from CUP Can you help me ? //Sometimes you need to remove units: - ["Blabla","moreBlabla"];
//Sometimes you need to add units: + ["Blabla","moreBlabla"];
switch (_p_en) do {
/*case "Myfactionexemple" : {
btc_type_units = btc_type_units - ["Blabla","moreBlabla"];
btc_type_divers = btc_type_divers + ["Blabla","moreBlabla"];
btc_type_crewmen = "Blabla";
btc_type_boats = btc_type_boats;
btc_type_motorized = btc_type_motorized;
btc_type_mg = btc_type_mg;
btc_type_gl = btc_type_gl;
};*/
case "OPF_G_F" : {
btc_type_motorized = btc_type_motorized + ["I_Truck_02_transport_F", "I_Truck_02_covered_F"];
btc_type_motorized_armed = btc_type_motorized_armed + ["I_Heli_light_03_F"];
};
case "IND_C_F" : {
btc_type_motorized = btc_type_motorized + ["I_G_Offroad_01_repair_F", "I_G_Offroad_01_F", "I_G_Quadbike_01_F", "I_G_Van_01_fuel_F", "I_Truck_02_transport_F", "I_Truck_02_covered_F"];
btc_type_motorized_armed = btc_type_motorized_armed + ["I_Heli_light_03_F", "I_G_Offroad_01_F"];
btc_type_units = btc_type_units - ["I_C_Soldier_Camo_F"];
};
case "CUP_I_PMC_ION" : {
btc_type_units = btc_type_units - ["CUP_I_PMC_Winter_Sniper","CUP_I_PMC_Winter_Medic","CUP_I_PMC_Winter_Soldier_MG","CUP_I_PMC_Winter_Soldier_MG_PKM","CUP_I_PMC_Winter_Soldier_AT","CUP_I_PMC_Winter_Engineer","CUP_I_PMC_Winter_Soldier_M4A3","CUP_I_PMC_Winter_Soldier","CUP_I_PMC_Winter_Soldier_GL","CUP_I_PMC_Winter_Crew","CUP_I_PMC_Winter_Pilot","CUP_I_PMC_Winter_Sniper_KSVK","CUP_I_PMC_Winter_Soldier_AA","CUP_I_PMC_Winter_Soldier_TL","CUP_I_PMC_Sniper_KSVK"];
btc_type_boats = btc_type_boats + ["CUP_O_LCVP_SLA","CUP_O_PBX_SLA","CFP_B_USMC_RHIB_DES_01"];
btc_type_motorized_armed = btc_type_motorized_armed + ["CUP_I_T72_NAPA","CUP_I_T55_NAPA"];
btc_type_motorized_armed = btc_type_motorized_armed - ["CUP_I_nM1025_M2_ION_WIN","CUP_I_nM1025_M2_DF_ION_WIN","CUP_I_nM1025_M240_ION_WIN","CUP_I_nM1025_M240_DF_ION_WIN","CUP_I_nM1025_Mk19_ION_WIN","CUP_I_nM1025_Mk19_DF_ION_WIN","CUP_B_nM1025_SOV_M2_ION_WIN","CUP_B_nM1025_SOV_Mk19_ION_WIN","CUP_I_nM1036_TOW_ION_WIN","CUP_I_nM1036_TOW_DF_ION_WIN","CUP_I_RG31_Mk19_W_ION","CUP_I_RG31E_M2_W_ION","CUP_I_RG31_M2_W_ION","CUP_I_RG31_M2_W_GC_ION"];
btc_type_motorized = btc_type_motorized - ["CUP_I_TowingTractor_ION","CUP_I_nM1025_Unarmed_ION_WIN","CUP_I_nM1025_Unarmed_DF_ION_WIN","CUP_I_nM1035_amb_ION_WIN","CUP_I_nM1035_amb_DF_ION_WIN","CUP_I_nM1037sc_ION_WIN","CUP_I_nM1037sc_DF_ION_WIN","CUP_I_nM1038_ION_WIN","CUP_I_nM1038_DF_ION_WIN","CUP_I_nM1038_4s_ION_WIN","CUP_I_nM1038_4s_DF_ION_WIN","CUP_I_nM1038_Ammo_ION_WIN","CUP_I_nM1038_Ammo_DF_ION_WIN","CUP_I_nM1038_Repair_ION_WIN","CUP_I_nM1038_Repair_DF_ION_WIN"];
btc_type_mg = btc_type_mg + ["CFP_B_USMC_M2_Machine_Gun_DES_01","CUP_O_DSHKM_SLA"];
btc_type_mg = btc_type_mg - ["B_HMG_01_high_F","B_HMG_01_F","B_GMG_01_high_F","B_GMG_01_F"];
btc_type_gl = btc_type_gl + ["CUP_B_MK19_TriPod_US","CUP_O_AGS_SLA"];
btc_type_gl = btc_type_gl - ["B_HMG_01_high_F","B_HMG_01_F","B_GMG_01_high_F","B_GMG_01_F"];
};
}; |
Beta Was this translation helpful? Give feedback.
Answered by
Vdauphin
Jan 15, 2024
Replies: 1 comment 7 replies
-
Hello,
What is not working? All array still contains the blacklisted class name? Cheers |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes please, all array you think the blacklist doesn't work