Click or drag to resize

IKSPActivateOnDecoupleDecoupleAction Method

Called when two parts decouple.

Namespace:  KSPDev.KSPInterfaces
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntax
C#
void DecoupleAction(
	string nodeName,
	bool weDecouple
)
Request Example View Source

Parameters

nodeName
Type: SystemString
The attach node name that has been detached.
weDecouple
Type: SystemBoolean
If true then the part being notified was a child in the relation to the detached part.
Remarks
The callback is only called on the part if it has an attach node that connects it to the other part. For this event to fire a decoupling logic must be executed. A simple removal from the vessel hierarchy won't trigger the event.
See Also