Jump to content

Model switching for an engine


MatterBeam

Recommended Posts

Hi.

This is probably the most complicated thing I'll ever do, but here goes:

Is there a way to create the option to switch between several models for an engine part in the VAB?

For example, I drag and drop an engine under a fuel tank. It has parameters A,B,C defined in a .cfg file, and is assigned model 1. I right click on the engine, and I can choose to switch to model 2. It has parameters D, E, F, assigned by another elsewhere in the .cfg file.

I know this option exists, because this 'model switch' is used in procedural fuel tanks.

How is this done? What .cfg code do I need to add to the engine?

Link to comment
Share on other sites

You might look at how MFS does it

    MODULE
{
name = FSmeshSwitch
moduleID = 0
buttonName = Next variant
previousButtonName = Previous variant
objectDisplayNames = FH-HL;FHN-HL;FHW-HL
objects = FH-HL;FHN-HL;FHW-HL
affectColliders = true
useFuelSwitchModule = true
fuelTankSetups = 0;1;2
}

Or just look up Firespitter and look at the wiki on it.

Link to comment
Share on other sites

You might look at how MFS does it
    MODULE
{
name = FSmeshSwitch
moduleID = 0
buttonName = Next variant
previousButtonName = Previous variant
objectDisplayNames = FH-HL;FHN-HL;FHW-HL
objects = FH-HL;FHN-HL;FHW-HL
affectColliders = true
useFuelSwitchModule = true
fuelTankSetups = 0;1;2
}

Or just look up Firespitter and look at the wiki on it.

Here's something I made for 4 parts named KRS, KRM, KRL and KRH, with display names Level A-D.


{
name = FSmeshSwitch
moduleID = 0
buttonName = Next
previousButtonName = Prev
objectDisplayNames = Level A; Level B; Level C; Level D
showPreviousButton = true
useFuelSwitchModule = false
objects = KRS; KRM; KRL; KRH
updateSymmetry = true
affectColliders = true
showInfo = true
}

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