Space Engineers

Space Engineers

Easy Automation V2.0
oOAlastorOo 9 Jan, 2022 @ 11:44am
Complete Beginner Questions
Hey there, as title says, im a complete beginner with this script and all sorts of programming whatsoever...

So i thought i could wrap my head around it to some what i suppose are rather simple things with it. As i couldnt find any list of possible "commands" for certain blocks, i tried to extrapolate from the examples in the guide and failed hard...

as for what i am trying to do... sort of a semi-mobile drilling rig for asteroids. its rather simple constructed and works as long as i use either a ton of timers and some buttons, or an entire row in the cockpit to turn on and the same to turn off.

thats where i thought the script comes handy to maybe reduce both to an single button press...

my rig has a group of pistons "Pistons Drill", a Group of Drills "Drills", a pair of Hinges on the Pistons "Hinges Drill", and an Advanced Rotor to turn them.

Essentially, the hinges "fold away" a set of Drills each along the Piston Shaft and rotate them to 0 position if they get used.

I get the Hinges to unfold the Drills and the Pistons to extend properly. I used Timers and Groups to unlock the Hinges, as well as activating the Drills before executing the command block to do everything else, as i were not able to get that done in the command block.

Same goes for rotating the advanced rotor at an speed of 10. Everytime i add an line to try to achive either of those, i get errors, so i suppose im just using the wrong variables here.

MY current piece looks as follows: (works if i remove the rotor part at the end)

@Start Drilling{
Delay 1000
ShortRotate (Hinges Drill) to 0 at 1
Delay 8000
Extend (Pistons Drill)
Velocity of Rotor Drill = 10
}

It would be cool if someone could help me with the correct commands to achive those steps:

start spinning "Rotor Drill" at 10rpm
lock and unlock "Hinges Drill" and "Rotor Drill"
extend/retract "Pistons Drill" at a variable speed (want to retract faster, so cant use speed in block without manual readjusting)
stop "Rotor Drill" at an angle of 0 and lock him

i would appreciate any help with this!
sorry if something isnt understandable, but im non-native and besides language barriers i got no clue what im even talking about... :p

regards