Jump to content

MM Syntax Question


VoidSquid

Recommended Posts

I'm trying to write a MM patch that disables all RCS functionality in any command pod (currently it's only the Mk1-3, afaik) having this functionality.

Would this work?

@PART[*]:HAS[@MODULE[ModuleCommand],@MODULE[ModuleRCS]]:FINAL
{
    @MODULE[ModuleRCS]
    {
        %moduleIsEnabled = false
    }
}

 

I'd like to have the ability to enable it again during flight, i.e. I don't want to completely remove the functionality, just disable it by default in the VAB.

Thanks in advance for your input.

EDIT: after some try and error, this works as intended:

@PART[*]:HAS[@MODULE[ModuleCommand],@MODULE[ModuleRCSFX]]:FINAL
{
    @MODULE[ModuleRCSFX]
    {
		rcsEnabled = false
    }
}


 

Edited by VoidSquid
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...