Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

How to check if a connector/landing gear is locked?

Discussion in 'Programming Questions and Suggestions' started by ZnvBecUet, Feb 8, 2017.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. ZnvBecUet Trainee Engineer

    Messages:
    7
    How to check if a connector/landing gear is locked? it appears that the "IsConnected" and "IsLocked" is being depricated.
     
    Last edited: Feb 8, 2017
  2. Malware Master Engineer

    Messages:
    9,549
    Doesn't the deprecation message say? It usually does...

    At any rate, both have some sort of status property now. The LandingGearMode enum is unfortunately not yet whitelisted, by mistake...
     
  3. ZnvBecUet Trainee Engineer

    Messages:
    7
    it says "Use the Status property" when i check the code
     
  4. Malware Master Engineer

    Messages:
    9,549
  5. Inflex Developer Staff

    Messages:
    397
    I see these issues being discussed over and over again in here. ;)
    I'll link you to few threads where you can find information you need for your scripting.

    Obsoletion of various properties such as `IsConnected` or `IsLocked` was discussed for example in following thread. I'll link you directly to my post discussing the new way of doing things:
    http://forum.keenswh.com/threads/getting-a-warning-in-script.7392468/#post-1287037647

    For API reference, docs and other stuff there are few ways to get to these discussed in following post:
    http://forum.keenswh.com/threads/modapi-changes-jan-26.7392280/page-2#post-1287038151

    And last but not least, scripting environment. Malware is correct here. Get yourself nice setup that will check your scripts for syntax problems, incorrect API or language usage like this one and will provide you immediate feedback on your code.
    I've already discussed it in #3 in my post linked above but just in case. You can use basically anything that supports text editing but Visual Studio is the best here.

    Up to date
    setup guide with correct DLLs is here:
    http://forum.keenswh.com/threads/setup-visual-studio-for-se-programming.7385455/#post-1286989996
     
Thread Status:
This last post in this thread was made more than 31 days old.