Jump to content

onPartDock GameEvent ?


Recommended Posts

I'm stuck on something, so I Wonder if someone can help : I need to detect and do something just before a part is docked.

Unfortunatly for me, it seem that there is no "onPartDock" event in KSP 0.21 (however "onPartUndock" exist, that weird)

I thought using "onPartCouple", however it's not good for me because it happen too late and both vessels are already moved at this point.

So, I'm not aware of all the C# possibilities, but does anyone know if there is an other way to detect the use of the docking Method from the "ModuleDockingNode" class partmodule ?

If not, I think the only way will be to ask to squad ?

Edited by KospY
Link to comment
Share on other sites

Nope, I'm pretty sure it is not possible. Also i do can not really imagine what you tare trying to accomplish. At that point, "magnetism" has kicked in anyway, so all you can measure is how effective those attraction was.

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