Jump to content

Jyrroe

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Jyrroe

  1. GameEvents.onPartAttach should be good enough That's amazing! Thanks for letting me know about the "GameEvents" class. It took me a minute to figure out how to subscribe to the events, but here it is: GameEvents.onPartAttach.Add(OnPartAttach); void OnPartAttach(GameEvents.HostTargetAction<Part, Part> data) { Debug.Log("OnPartAttach"); } And no, it doesn't fire for the first part, but does for every additional part, and of course GameEvents.onPartRemove for the opposite.
  2. I'm writing a plugin that runs in the editor (VAB/SPH), has anyone figured out some kind of event/callback for parts being added/removed from the ship? Right now, I'm updating my list of parts every frame in Update() but there's got to be a better way.
×
×
  • Create New...