I want to remove or desactivated a base.recipe in lua because i want to create a new recipe in a mod.
I tried to add the NeedToBeLearn to true to dissappear on all players but nothing happens.
ZAWRemove = {}
function ZAWRemove.ZAW_remove(recipe2)
local recipe2 = ScriptManager.instance:getRecipe("the name of recipe");
if recipe2 then
recipe2:setNeedToBeLearn (true);
else
end
end
Events.OnGameStart.Add(ZAWRemove.ZAW_remove);