Jump to content

Open Shield on Docking Port


Recommended Posts

Hello,

I am working on the script module for MechJeb to automate flights using the excellent MechJeb module.

I am facing a problem: How can i programmatically open the Shield of a shielded Docking Port?

Is this a function of the "Part" or a function of the "ModuleDockingNode"?

Thank you for your help

Link to comment
Share on other sites

The cfg has a ModuleAnimateGeneric. That s what controls the shield.

Edit and notice the deployAnimationController value on ModuleDockingNode

Edited by sarbian
Link to comment
Share on other sites

Geat! Thank you @sarbian

On the ModuleDockingNode, there is a " deployAnimator " and i can call the "Toggle()" method on it to open/close the shield.

The " deployPercent " on the animator will tell if the shield is open (100) or closed (0).

The " actionAvailable " will tell if this is a shielded dock or not.

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