kOS.AddOns.RemoteTech.RemoteTechHook.IsAvailable C# (CSharp) Method

IsAvailable() public static method

public static IsAvailable ( ) : bool
return bool
        public static bool IsAvailable()
        {
            return Instance != null && Instance.IsRemoteTechEnabled();
        }

Same methods

RemoteTechHook::IsAvailable ( System.Guid vesselId ) : bool

Usage Example

 public bool HasConnectionToHome(Vessel vessel)
 {
     if (!RemoteTechHook.IsAvailable())
     {
         return(false); // default to no connection if RT itself isn't available.
     }
     return(RemoteTechHook.Instance.HasConnectionToKSC(vessel.id));
 }
All Usage Examples Of kOS.AddOns.RemoteTech.RemoteTechHook::IsAvailable