Space Engineers

Space Engineers

Not enough ratings
Control Module - Example Tank
   
Award
Favorite
Favorited
Unfavorite
Type: Blueprint
File Size
Posted
Updated
809.221 KB
2 Apr, 2016 @ 10:01am
11 Mar, 2019 @ 6:55am
8 Change Notes ( view )

Subscribe to download
Control Module - Example Tank

Description
An example for Control Module mod.

A basic tank base prefab that shows how to control rotor-wheels with WASD as well as have a turret controllable with mouse that requires a mouse button to control (hold right click).
31 Comments
FinXzuOP 22 Dec, 2019 @ 11:24am 
I am very sorry it was only up to my own incompetence. Thanks for the fast response and sorry for wasting your time... I just loaded the wrong map where I had not the mod enabled... works just fine!!
Digi  [author] 22 Dec, 2019 @ 11:17am 
Is the mod installed? Does the PB have errors? Are PBs even enabled?
FinXzuOP 22 Dec, 2019 @ 11:10am 
no errors in code but its simply not moving... neither the tank nor the turret. I dont know what I do wrong
NicoBlast 28 Nov, 2019 @ 1:42pm 
Thx, i wanted the script for my land crawler to turn the 4 steering rotors, did it with pistons and rotors instead.
Digi  [author] 28 Nov, 2019 @ 6:30am 
Oh also, you don't need a programmable block to use the mod, it supports timer blocks too for doing the actions from the timer's toolbar on certain input combination.
Digi  [author] 28 Nov, 2019 @ 5:59am 
Works fine here.
Look at the PBs to see if they have any errors... if it says the mod not found then recompile them (edit then just save).
If it still can't find the mod, did you add the mod to the world?

You've already seen the tutorial, but it sounds like you're asking a tutorial for the game's PB, for that you should start with https://github.com/malware-dev/MDK-SE/wiki/Quick-Introduction-to-Space-Engineers-Ingame-Scripts and any questions you may have you should ask them in the Keen discord on the #programing-ingame channel.
NicoBlast 28 Nov, 2019 @ 4:24am 
i have tried the tank but it dosen't move, i would like to learn how to use script for more advance moving systems in my builds but i can't seem to wrap my head around how this works, could you make a tutorial on the script?
OverlordIcy 11 Mar, 2019 @ 5:33pm 
@Digi Okay!! Update: I tried editing the Script with the block.Enable = true; and such and it threw another separate exception. Not going to bother posting it as you updated this script and I put it into the PB on my Rover and it's working properly again!!! ^.^!!! Thank you so much Digi, I greatly appreciate it, very very much so I do!! <3 I enjoy making my own Suspension and Wheels with Rotors and Hinges and this lovely script of yours makes it infinitely easier to control contraptions as such!! I do have one last quick question; is there a good resource to learn how to make scripts for SE or to learn to make custom scrips using your Control Module? Like I want to make a giant rover with Multiple Rotors and Hinges so each wheel has its own custom suspension and I'd love to learn how to use the Control Module to be able to control not only the wheel rotors turning, but the hinges to turn rather than wheel rotor speed. Again though, thank you SO VERY much again!! :]
OverlordIcy 11 Mar, 2019 @ 12:55pm 
Well it works, yes, kinda. It still turns the rotors, but now it doesn't stop them when you let go of A or D. Before I'd tap A slightly and turn about 45ish degrees, now if I tap A I spin around in a circle about 30+ times. Have to hit spacebar to stop myself altogether making turning while driving almost entirely impossible. I'll try that out though as soon as I land back on Mars and see if it helps. Thanks for the quick response, I appreciate it!
Digi  [author] 11 Mar, 2019 @ 6:55am 
This example still works fine, that warning doesn't really matter but you can just replace it with block.Enable = true; and such.

I've updated this bp to tweak the turret rotor to not clang on itself, and updated the script while at it too.