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.

Remote control block's autopilot status and switching

Discussion in 'Programming Questions and Suggestions' started by Dr. Novikov, Sep 4, 2015.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. Dr. Novikov Apprentice Engineer

    Messages:
    263
    1. How do I check if autopilot is on?
    2. How do I turn autopilot on?
    3. How do I turn autopilot off?
     
  2. Dr. Novikov Apprentice Engineer

    Messages:
    263
    Okay, I've figured out #2 and #3:
    Code:
    escape.GetActionWithName("AutoPilot_On").Apply(escape);
    
    Code:
    escape.GetActionWithName("AutoPilot_Off").Apply(escape);
    
     
  3. Dr. Novikov Apprentice Engineer

    Messages:
    263
    Well, #1 was a little harder:
    Code:
    escape.GetValue<bool>("AutoPilot");
    
     
  4. Wicorel Senior Engineer

    Messages:
    1,262
    You can also see if the player is using a remote by:

    Code:
    remoteControl.IsUnderControl
    
    You can not turn on autopilot if the user is 'using' it..
     
Thread Status:
This last post in this thread was made more than 31 days old.