Jump to content

Creating a one-part vessel (or Kerbal) from thin air.


Recommended Posts

I'm making a transporter mod, and I've hit a hiccup in trying to spawn a vessel from nothingness. Now, I've looked a bit into how things like VesselMover and ExtraplanetaryLaunchpads do this, but both of those rely on building from a saved craft in the VAB/SPH. What I'm trying to do is spawn a single-part vessel (currently I'm trying to use the mk1LanderPod as a placeholder) at a given location, so that I can then EVA the kerbal and delete the vessel. The thing is, I've no real clue how to go about this, I'm guessing I need to make a ShipConstruct for my destination-ship, a ConfigNode to use as it's spawning-root, use ".add(Part p)" to add the lander pod to the empty construct, then send the craft to where I want it to be. Problem is, I've no clue how to point .addPart(Part p) towards a part that's not actively on my vessel already. Does anyone out there have the expertise to help me break the laws of conservation of mass and energy?

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...