Space Engineers

Space Engineers

Not enough ratings
Machine Controller v1.3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.130 KB
30 Dec, 2016 @ 9:14am
21 May, 2017 @ 1:01am
5 Change Notes ( view )

Subscribe to download
Machine Controller v1.3

Description
Allows control of pistons/rotors with flight controls from cockpit.

Attention: does not work with cockpits that are attached to stations! must use a cockpit that is attached to a moveable part, if you want to use it on station make sure the seat is placed on part of the moving structure.


Required Blocks
- 1 Programmable block
- 1 Timer
- 1 Ship controller: Cockpit, Flight Cockpit, Flight Seat, Control Station...
- any amount of rotors/pistons/advanced rotors

Setup
1) Name your cockpit "MC_Controller" (configurable in script).
2) Setup actions in timer block :
- Programmable Block: Run with default argument.
- Timer(self): Trigger Now.
3) Trigger timer block.
4) Add tags to rotors/pistons.
5) Ready to use.
6) optional: set programmable block filter arguments in hotbar to switch filters

Tag Format
"MC:<group_name> {<axis>:<strength>...}"
<group_name>: optional set a group for piston/rotor.
{<axis>:<strength>...}: list of axes and their associated strengths.

Axis Names
- longitudinal: w/s keys
- lateral: a/d keys
- vertical: ctrl/spacebar keys
- yaw: left/right keys and mouse
- pitch: forward/back keys and mouse
- roll: q/e keys

Tag Examples
"Rotor 1 [MC longitudinal:10]"
"Rotor 2 [MC yaw:3 vertical:-3]"
"Piston 1 [MC:drill yaw:5]"

Tips
- Add an LCD display named "MC_Debug", and set Programmable
block argument to "debug" to configure easier.
- Disable Gyros and Thruster Control on the control cockpit.


Programmable Block arguments
'debug' - displays debug output to any LCD named "MC_Debug";
'filter <group_name>' - filters to only manipulate pisons and rotors with specified group name


todo
- enable/disable commands, automatically deactivate gyros and thruster control
- filter groups for multiple control on same grid complete
6 Comments
reck829 11 Jul, 2017 @ 10:01pm 
I'v having a problem, whenever I spawn in a new vehicle using this script, or I relog the game, all controls for the script dont work until I go into the script and hit remeber and exit without changing anything.
reck829 9 Jul, 2017 @ 9:46pm 
This is needed, just simple wasd keys to rotors.
Lomare 20 May, 2017 @ 10:40pm 
One of the best script controls put into the game, taken advantage of.
damienmccain12 12 Feb, 2017 @ 9:07am 
this script is a godsend.so much easier than MARMOS when it comes to setting up simple turrets and tread controls
Significant_Drake 12 Jan, 2017 @ 9:33am 
Thank you for this script. This is perfect for my crane. One thing longitudal is logitudinal in the script
PrzemoNDM 4 Jan, 2017 @ 4:09pm 
Simply brilliant, thanks S.E. brother.
This script I was already needed.
Continue the work because you are doing a good job.
:steamhappy: