Hey there i tried a lot but nothing works. i would like to add a function to the mouse menu in my addon.
How can i do that. i would like to call the sqf from my config.hpp.
i tried
class DefaultEventhandlers;
.
.
.
class CfgVehicles{
class B_Soldier_base_F;
class Desert_DPM_BDU :B_Soldier_base_F {
scope = protected;
model = "\A3\characters_F\BLUFOR\b_soldier_03.p3d";
hiddenSelections[] = {"camo","insignia"};
hiddenSelectionsTextures[] = {"path\DPM_Desert.paa"};
class EventHandlers: EventHandlers{
init = "call myTag_fnc_myFunction;";
};
};
};
class CfgFunctions{
class myTag
{
class myCategory
{
class myFunction {file = "scripts\test.sqf";};
};
};
};
I added the sqf to addon via tool and include sqf for compiling.
so what i'm doing wrong?