

lemon1324
-
Posts
41 -
Joined
-
Last visited
-
:resources should be a read-only tool to get info from parts. I'm pretty sure (haven't done it, haven't had too much time for KSP lately) you want to take a look at PartModule interfacing, which basically lets you do everything that shows up in the right mouse button menus. It should look something like "part:getmodule("moduleName")" to get the fuel tank module and then either :doaction or :setfield depending on which the fuel enable is. There's also getter functions so you can query the modules on a part and the fields/actions on the part. (check the PartModule documentation on the kOS github documentation)
-
Yo lem dawg (I'm white, just being silly), I have a question for you concerning kOS. I have a specific fuel tank on my ship that I want to turn off fuel flow for. I found :resources and :enabled in the documentation, but it gave no example usages of the code. I've been trying things like set mypart:resources:enabled to false, but to no avail. It tells me :resources isn't a suffix to a part. Do you know how to shut off fuel for a specific tank and if so could you provide an example?