Jump to content

[HELP] Fuel Pump?


Recommended Posts

I know visual studio 2013, resharper, C#, VB, etc... but I'm new to KSP plugins.

I'm trying to invent a new fuel duct, but as a stack part instead of a compound part, I have the part modeled and ready to go, except I need to create a new module to get it to behave the way I need it to.

can anyone point me in the right direction?

EDIT: What I'm asking, is how do I find all the fuel sources, recursively, that my part is attached to, and which node the source is attached?

Edited by Xyphos
Link to comment
Share on other sites

Part have a part.fuelLookupTargets that list the directly connected part that can transfer fuel. However this is not recursive.

But if you want to move fuel between part you can just call part.RequestResource to request the fuel and then add it somewhere else. That would honor the resource flowmode. If it does not work for your need then you will have to recreate the whole fuel graph and make sure you respect the fuelflow

I guess you could have a look at ksp "tac fuel balancer" or "Ship manifest" source.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...