- Include your own "script_component.hpp" in the "config.cpp" of your addon
see script_macros_common.hpp for more information
-
Add the
Extended_PreInit_EventHandlers
class to your "config.cpp" (see example for full code) -
Create a "XEH_preInit.hpp" file
-
Add the settings for your mod by calling the
cba_settings_fnc_init
function (see example)
see fnc_init.sqf for more detailed information about this function
Due limitations of the Event Handlers of CBA (which is an issue with the ArmA 3 engine), it's required to pre-load a world while starting the game. This means it's not possible to use the -world=empty
parameter.