Jump to content

How to tell when a part has been destroyed/is about to be destroyed


Recommended Posts

So I am trying to determine when a part on the active vessel has been destroyed, or is about to be destroyed so I can change a UI element. Do I need to be adding something to GameEvents.onPartDestroyed, or is that the opposite of what I want to do? I guess I'm asking for a quick rundown of the GameEvents system. Thanks.

Link to comment
Share on other sites

I've used GameEvents.onVesselChanged with mixed success. It seems to catch the dock/undock and decouple events but only some of the "scrape a solar panel off" events. Just figuring this out myself so I can't give you a rundown.

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