Project

General

Profile

Feedback #10217

Feature request: Notify when joint is created and setup

Added by IgorZ over 7 years ago.

Status:
New
Severity:
Low
Assignee:
-
Category:
Plugins/Add-Ons
Target version:
-
Version:
Platform:
Windows
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

Is there a chance to have an ability for the mods to know when a joint (PartJoint) is created and initialized between the two parts? The moment that is interesting is when the joint is: a) created, and; b) setup to its final state. Alas, listening for onVesselGoOffRails, onPartCouple, and onPartDecouple don't give enough context since joint is not existing at this momemnt. Moreover, even in OnStart the joint is not final even though it's existing, it can (and usually will) change aftewards. There are workarounds to detect the moment but they are all weird and error prone. It would be better if KSP could nodtify modules about the joint final state (in case of they want modifying it).

One of the ways of getting this issue solved could be designing PartJoint so what it could be overridden. In which case the original joint could be replaced in the OnStart method, and all the following interactions would be going between KSP core and the custom joint provider.

Also available in: Atom PDF