diff --git a/custom_scripts.hpp b/custom_scripts.hpp new file mode 100644 index 0000000..8b9b928 --- /dev/null +++ b/custom_scripts.hpp @@ -0,0 +1,11 @@ +// This file's contents will be included in the mission's CfgFunctions section, and serves to give you a place to define custom functions from files you've placed in /scripts. + +class milsim_scripts { + class functions { + file = "scripts"; + // Add your custom functions here, like so: + // class init {postInit = 1;}; // refers to scripts/fn_init.sqf. postInit=1 means it will be run on each machine when they're done loading the mission. + // class customFunction1 {}; // refers to the file scripts/fn_customFunction1.sqf, and is called as milsim_scripts_fnc_customFunction1 + // class customFunction2 {}; // refers to the file scripts/fn_customFunction2.sqf, and is called as milsim_scripts_fnc_customFunction2 + }; +}; \ No newline at end of file diff --git a/description.ext b/description.ext index fa93c9e..ecf0796 100644 --- a/description.ext +++ b/description.ext @@ -97,6 +97,7 @@ class Params // CfgFunctions class CfgFunctions { #include "framework\CfgFunctions.hpp" + #include "custom_scripts.hpp" };