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.

Rotor override

Discussion in 'Programming Questions and Suggestions' started by Wottan, Jul 7, 2016.

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

    Messages:
    14
    Hello I want to know if there is, what is the name of the action to toggle override safety lock on rotors and set the override speed from a programmable block. I am writing a rudimentary program to stretch a zigzag arm and Id like to be able to change the override speed for space/planet operations as well as auto lock once complete.
     
  2. Inflex Developer Staff

    Messages:
    397
    To retrieve list of available actions and properties for any in-game block run following code snippet inside programmable block.
    Code:
    var block = GridTerminalSystem.GetBlockWithName(" *BlockName* ");
    
    var actions = new List<ITerminalAction>();
    block.GetActions(actions);
    
    Echo("Actions:");
    foreach(var action in actions)
        Echo(action.Id+ "->" + action.Name);
    
    var properties = new List<ITerminalProperty>();
    block.GetProperties(properties);
    
    Echo("Properties:");
    foreach(var property in properties)
        Echo(property.Id + "->" + property.TypeName);
    

    List of actions and properties for advanced rotor looks like this:
     
    Last edited: Jul 7, 2016
  3. Wottan Trainee Engineer

    Messages:
    14
    Thank you, as far as I can see weld will be the solution I will try to work with it :)
     
  4. Malware Master Engineer

    Messages:
    9,866
    • Like Like x 1
Thread Status:
This last post in this thread was made more than 31 days old.