diff --git a/addons/arsenal/XEH_PREP.hpp b/addons/arsenal/XEH_PREP.hpp index 98753b070c..233abc56f8 100644 --- a/addons/arsenal/XEH_PREP.hpp +++ b/addons/arsenal/XEH_PREP.hpp @@ -1,3 +1,4 @@ +PREP(addDefaultLoadout); PREP(addListBoxItem); PREP(addStat); PREP(addVirtualItems); diff --git a/addons/arsenal/functions/fnc_addDeafultLoadout.sqf b/addons/arsenal/functions/fnc_addDeafultLoadout.sqf new file mode 100644 index 0000000000..3d3c003a4c --- /dev/null +++ b/addons/arsenal/functions/fnc_addDeafultLoadout.sqf @@ -0,0 +1,21 @@ +#include "script_component.hpp" +/* + * Author: 654wak654 + * Adds a loadout to the "Default Loadouts" list. + * + * Arguments: + * 0: Name of loadout + * 1: getUnitLoadout array + * + * Return Value: + * None + * + * Example: + * ["Squad Leader", getUnitLoadout sql1] call ace_arsenal_fnc_addDefaultLoadout + * + * Public: Yes +*/ + +params [["_name", "", [""]], ["_loadout", [], [[]], 10]; + +GVAR(defaultLoadoutsList) append [_name, _loadout];