Need help with code

What’s the code for needing to have researching something in the lab before you can research it as an engine part?

If you are creating your own research, I suggest adding

GDT.getDataStore("MyMod").data.hadResearch = true;

onto your completion code. And then

if(GDT.getDataStore("MyMode").data.hadResearch) return true;

on your “trigger”.

1 Like

Sounds good, I’ll try it out.