private void attachFuelLine() { targetVessel = compoundPart.target.vessel; targetVesselID = targetVessel.id; targetID = compoundPart.target.craftID; if (evaWindow == null) { evaWindow = gameObject.AddComponent <EVATransfer_Window>(); evaWindow.setup(transferLF, transferLOX, transferMono, transferXen, transferEC, transferOre, transferAll, this); } evaWindow.activateVessels(vessel, targetVessel); Events["dropEVAFuelLine"].active = false; Events["pickupEVAFuelLine"].active = false; Events["cutEVAFuelLine"].active = true; Events["openEVAFuelTransfer"].active = true; Events["closeEVAFuelTransfer"].active = false; OnTargetSet(compoundPart.target); connectionDistance = (endCap.transform.position - startCap.transform.position).magnitude; Events["cutEVAFuelLine"].unfocusedRange = connectionDistance + 10; Events["openEVAFuelTransfer"].unfocusedRange = connectionDistance + 10; Events["closeEVAFuelTransfer"].unfocusedRange = connectionDistance + 10; compoundPart.attachState = CompoundPart.AttachState.Detached; EVAAttachState = CompoundPart.AttachState.Attached; }
public void openEVAFuelTransfer() { if (FlightGlobals.ActiveVessel.isEVA) { if (!checkEVAVessel) { return; } if (!checkEVADistance) { return; } } else if (FlightGlobals.ActiveVessel != vessel && FlightGlobals.ActiveVessel != targetVessel) { return; } if (evaWindow == null) { evaWindow = gameObject.AddComponent <EVATransfer_Window>(); evaWindow.setup(transferLF, transferLOX, transferMono, transferXen, transferEC, transferOre, transferAll, this); } if (evaWindow == null) { return; } evaWindow.Visible = true; evaWindow.StartRepeatingWorker(0.2f); Events["openEVAFuelTransfer"].active = false; Events["closeEVAFuelTransfer"].active = true; }
private void attachFuelLine() { targetVessel = compoundPart.target.vessel; targetVesselID = targetVessel.id; targetID = compoundPart.target.craftID; if (evaWindow == null) { evaWindow = gameObject.AddComponent<EVATransfer_Window>(); evaWindow.setup(transferLF, transferLOX, transferMono, transferXen, transferEC, transferOre, transferAll, this); } evaWindow.activateVessels(sourceVessel, targetVessel); Events["dropEVAFuelLine"].active = false; Events["pickupEVAFuelLine"].active = false; Events["cutEVAFuelLine"].active = true; Events["openEVAFuelTransfer"].active = true; Events["closeEVAFuelTransfer"].active = false; OnTargetSet(compoundPart.target); connectionDistance = (endCap.transform.position - startCap.transform.position).magnitude; Events["cutEVAFuelLine"].unfocusedRange = connectionDistance + 10; Events["openEVAFuelTransfer"].unfocusedRange = connectionDistance + 10; Events["closeEVAFuelTransfer"].unfocusedRange = connectionDistance + 10; compoundPart.attachState = CompoundPart.AttachState.Detached; EVAAttachState = CompoundPart.AttachState.Attached; }
public void openEVAFuelTransfer() { if (FlightGlobals.ActiveVessel.isEVA) { if (!checkEVAVessel) return; if (!checkEVADistance) return; } else if (FlightGlobals.ActiveVessel != sourceVessel && FlightGlobals.ActiveVessel != targetVessel) return; if (evaWindow == null) { evaWindow = gameObject.AddComponent<EVATransfer_Window>(); evaWindow.setup(transferLF, transferLOX, transferMono, transferXen, transferEC, transferOre, transferAll, this); } if (evaWindow == null) return; evaWindow.Visible = true; evaWindow.StartRepeatingWorker(0.2f); Events["openEVAFuelTransfer"].active = false; Events["closeEVAFuelTransfer"].active = true; }