Meatball0311 79 Posted October 31, 2015 How would I execute an init.sqf within a addon for a piece of gear? Would you use class EventHandlers;? I cannot get it to launch the init.sqf class CfgPatches { class soc_gear { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"A3_Data_F","A3_Weapons_F","A3_Characters_F","A3_Characters_F_BLUFOR","Extended_EventHandlers"}; Author[] = {"SOCMOD"}; }; }; class Extended_Init_EventHandlers { class soc_gear { soc_gear_init = "_this execVM ""\soc_gear\init.sqf"""; }; }; Share this post Link to post Share on other sites
Meatball0311 79 Posted October 31, 2015 I managed to execute the init.sqf by using CfgFunctions: class CfgPatches { class soc_gear { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"A3_Data_F","A3_Weapons_F","A3_Characters_F","A3_Characters_F_BLUFOR","Extended_EventHandlers"}; Author[] = {"SOCMOD"}; }; }; class CfgFunctions { class EXEC_SOC_GEAR_INIT { class SOC_GEAR_F { class soc_gear_init { postInit=1; file = "\soc_gear\init.sqf"; description = "script run after mission started and object initialization is complete"; }; }; }; }; But how do i execute the init.sqf using CBA? SOLVED: class Extended_PreInit_EventHandlers { SOC_GEAR_INIT = "SOC_GEAR_INIT_VAR = [] execVM ""\soc_gear\init.sqf"""; }; Share this post Link to post Share on other sites