

You can change this at the beginning of the script.

This should make fine adjustments easier.

For rotors, it is RPM, for pistons, it is M/S, for suspension, it is the throttle ratio.įor example, if you want a rotor to turn clockwise when you press forward, and counterclockwise when you press backward, then you just need to set "Forward=" and "Backward=".īy default, the script ramps up in speed until it hits the defined speed over 3 ticks. This is additive, it will sum up the total value and apply that value to the part. When the corresponding key is pressed, it adds the corresponding value to the velocity of the part. Provide the RPM of the part when the corresponding key is pressed.Įach of the values represent movement commands that can be read through the cockpit. This does not prevent the script from running.ģ) Go into the customData of the blocks and you will find something similar to this:

It may give some warnings if the controllers have thruster or wheel control enabled. Setup is surprisingly easy, even for how I predicted it to be.ġ) Put all the rotors, pistons, and ship controllers in a group called "PARK" (You can change this in the script.)Ģ) Compile the script for the first time. With both of these it should be a lot easier to make small, precise movements. effectively.Īdded in ramping so you can tap control things, as well as a general speed multiplier you can define with commands. Now you can control your end effectors more. If you set the Return Order Priority to -1, it will cause parts to return to their neutral position whenever their input isn't being received, and won't be considered when executing the return command.Īdded in support for mouse controls with help from Marii. When you run the command "Return", it will return each part to the set position, provided it has a speed set, in the order of the lowest Return Order Priority first. Three new terms have been added to the generated ini files, Return Position, Return Speed, and Return Order Priority. defaults to off in case you want to manually enable/disable pistons, but may reduce the noise pistons make while stationary if enabled. Minor update adding in the setting "togglePistonPower" to only enable pistons for when they are moving. This makes this script useful for things like cranes and possibly rotor based tank steering, although it could potentially be used for anything you want keybind controls for. As a result, you can have four six axes of control, per profile (which I will explain a bit later). It allows you to control rotors and pistons using movement commands through a cockpit. This is a script intended to make things like cranes simpler and easier to control.
