Add my fn_selfActions code somewhere below there and and remove the _mags = magazines player from my code. So long as its not defined twice and is defined before my code somewhere it will work just the same.Hi, I wanted to add this into my existing basebuilding 1.2 fn_selfactions.sqf but i stumble accross this, can you point me in right direction on how i go about implementing it in there?
Code:// Check mags in player inventory to show build recipe menu _mags = magazines player; if ("ItemTankTrap" in _mags || "ItemSandbag" in _mags || "ItemWire" in _mags || "PartWoodPile" in _mags || "PartGeneric" in _mags) then { hasBuildItem = true; } else { hasBuildItem = false;}; //Build Recipe Menu Action if((speed player <= 1) && hasBuildItem && _canDo) then { if (s_player_recipeMenu < 0) then { s_player_recipeMenu = player addaction [("<t color=""#0074E8"">" + ("Build Recipes") +"</t>"),"buildRecipeBook\build_recipe_dialog.sqf","",5,false,true,"",""]; }; } else { player removeAction s_player_recipeMenu; s_player_recipeMenu = -1; };