Space Engineers

Space Engineers

Isy's Suspension Toggle
57 Comments
Warlocc 9 Jul @ 3:25pm 
The toggle function of this script no longer works.
Spartan 23 May, 2024 @ 9:55am 
Can strength be adjusted ? i think strength is more important than heights
Warlocc 28 Aug, 2023 @ 6:53pm 
I spent way too long looking for something to do this. This is great.
kennet0508 1 Apr, 2023 @ 8:41am 
Would it be hard to ammend this script to also set suspension strength %?

Im trying to build a big bertha like canon, Pistons are too slow to mimic a firing recoil, but a suspension with rotor head is really fast moving, so this script is perfect for the "firing retraction" sequence

but for "retraction" im looking to set suspension strength to say 2.5% and set -1.50 offset which should allow a slow extension back to original position
WileyCoyote 25 Oct, 2021 @ 5:19pm 
Is there a way to configure this script to control two sets of wheels with different suspension settings (e.g. One set down, the other set up)?
death.panther 25 Oct, 2021 @ 5:02pm 
I love how simple this script is and it works so well. The only improvement that would be nice is if you had an Exclude option like in your inventory manager script. Your scripts make this game so much more fun. Great Job man.
Isy  [author] 3 Sep, 2021 @ 1:07am 
Not really.. This script is dead simple and does not have any advanced features..
Schmetterling 2 Sep, 2021 @ 11:37pm 
Dear Isy, I use a hover ATSR-4 SAVANNA and the structure of its suspension is such that you should not touch the wheel suspension on the rotors. You need to control the height of its suspension through a shock-absorbing suspension. Can your script ignore any specific wheel suspension? Subgrid support is encouraged.
Schmetterling 2 Sep, 2021 @ 11:37pm 
Уважаемый Isy, я использую ховер ATSR-4 SAVANNA и строение его подвески таково, что не стоит трогать подвеску колес на роторах. Управлять высотой его подвески нужно через амортизирующую подвеску. Может ли ваш скрипт игнорировать какие-то конкретные подвески колес? Поддержка подсеток приветствуется.
xpgx1 25 Aug, 2021 @ 3:49am 
Hmmm... makes me look stupid that I didn't thought about it that way, huh? =)
I see. It's just that your scripting is hardcore user friendly. Y'know? It's simple, compact, elegant. That's why I pushed the idea here. Maybe you find the time and inspiration - I'd imagine it's a rather niche case, why build Rovers when we could replace their role with another flying grid? I just like the feeling of "realistic" rovers. :Baserunner: Thx for replying, have a gr8 day.
Isy  [author] 25 Aug, 2021 @ 2:33am 
I mean you could just put the programmable blocks multiple times into your hotbar with different arguments.. And then, with a simple press of a button, the height is accordingly.. What the script currently can't do is to switch suspension strength or other parameters of the wheels.. Maybe, I'll implement that someday..
xpgx1 23 Aug, 2021 @ 4:43am 
Gr8 script, has been for many years =)
I'm wondering - would it be possible to update the script with profiles for specific suspensions? I'm building a rock-climber, and depending on the load and incline, i need to switch between different presets =) The other suspension scrip i found is UNBELIEVABLY complicated in its usage. If not, I'd understand ^^
Isy  [author] 10 Aug, 2021 @ 1:31am 
No it shouldn't since it doesn't run continuously..
Schmetterling 8 Aug, 2021 @ 7:29am 
Уважаемый Isy, будет ли ваш скрипт конфликтовать с "DAS - Driver Assisting System" во время его работы? Или стоит ваш скрипт включать только для проведения нужных действий?

Dear Isy, will your script conflict with "DAS - Driver Assisting System" while it is running? Or should you include your script only to carry out the necessary actions?
Schmetterling 21 Mar, 2021 @ 9:59am 
I was running out of words to describe my admiration.
YeahKinda 4 Jun, 2020 @ 8:49am 
Ah, it was at the 6% default when I did it
Isy  [author] 4 Jun, 2020 @ 3:16am 
That's an indication of too high suspension strength.. Try lowering it a bit so that it's not as stiff..
YeahKinda 3 Jun, 2020 @ 7:03pm 
Hey, Isy, Could I ask for maybe some instructions on how to make it change slowly between 0.26 and -0.32? It needs to maybe just stop at 0.00 before going to the other end, Right now it jumps the whole craft
Isy  [author] 3 Jun, 2020 @ 9:47am 
No advanced functions here.. Just a little toggle script ;)
UKmadman2 3 Jun, 2020 @ 2:55am 
Question, the script is used to change specific heights, can it also control strength to re-adjust height based on increased load, or way to auto mate adjustment based on monitoring the current load/load group
YeahKinda 25 Oct, 2019 @ 2:48am 
Ah, I don't know anything about coding or else I would've jerry rigged it into the script, but it's a really great and useful code!
Isy  [author] 24 Oct, 2019 @ 1:48am 
Not right now, but I could add that pretty easily..
YeahKinda 20 Oct, 2019 @ 10:22pm 
Yeah but is there any way to opt out certain lights when you do it? That's what I'm meaning. I had headlights on a drone using this script to compact the wheels further, but the script kept nabbing control of the color of the spotlights I was using as headlights and changing them as well.
Isy  [author] 13 Oct, 2019 @ 6:42am 
But changing the light color is optional..
YeahKinda 8 Oct, 2019 @ 2:28pm 
Script*
Man I wish you could like edit posts.
YeahKinda 8 Oct, 2019 @ 2:27pm 
Lovely mod that's helping me build a small scout drone! I don't necessarily like the fact that it will change the color of all the lights though...
OctoBooze 21 Aug, 2019 @ 11:54am 
Would be an absolutely fantastic addon to be able to define which lights to toggle along with the script. Other than that an absolute lifesaver. Awesome work!
Duke Venator Mythis 22 Feb, 2019 @ 6:11pm 
When ever I run the script with the arguments I get a script is too complex error?
DaRa 14 Oct, 2018 @ 10:33am 
Yeah that's what I do currently but I need a lower change than the increase/decrease function perform.
It's also why your script is awesome ;)
Shouldn't be too hard to tweak your script to do the same for strenght no ? Isn't it "just" a different parameter/variable ? I mean you have done all the hard work, I would guess tweaking it for my need should be doable by me ?
Isy  [author] 14 Oct, 2018 @ 10:31am 
Use vanilla wheel increase/decrease functions (pull down to a toolbar and choose your settings). This also works for groups of wheels..
DaRa 14 Oct, 2018 @ 9:22am 
thanks a lot for this, I have been looking for something like that for a while.
Now I know you said you won't spend more time on it, but is there any way you could make the same exact thing but just change the suspension strenght instead of height ?
If you really can't you think I could tweak it myself ?
Thanks again
Cheers
RangeRunner 25 Sep, 2018 @ 4:47am 
Well as you said in the description this script only effects the suspention hight
Isy  [author] 25 Sep, 2018 @ 4:31am 
You can change wheel settings by using groups and the built in increase and decrease actions.. Absolute values are of limited use here and as this is a "mini-script", I won't add any more bulk to it.. Sorry..
RangeRunner 25 Sep, 2018 @ 3:55am 
Hey iv been looking for a script where i can toggle all wheel settings with 1 press of a butten.
Basicly set the wheel settings you want on the program block and it will set those settings to the designated wheels when you hit RUN onec.

This can be very usefull when driving a vehicle in differant types if terrain,

You can toggle it to instently set the wheel settings more apropirate when reaching an steep hill and run the other program block to set the settings more fitting on a flat desert.

I would like to try to do this myself but i cant code for crap. So if you make this very simple script im sure some people inclooding me will be more then gratfull.
Isy  [author] 24 Aug, 2018 @ 4:09am 
Be sure to have enough clearance under the vehicle.. Also, too powerful suspension settings could cause this behavior, so try lowering your suspension strength..
SurfinCowboyGaming 23 Aug, 2018 @ 5:02pm 
When I switch between the 2 heights, it flips the vehicle. Is there a way I can fix that?
Isy  [author] 26 Jul, 2018 @ 4:18pm 
Not right now, but maybe soon ;)
BLU MIMI Sentry 26 Jul, 2018 @ 4:08pm 
Is there a way to make the script ignore certain wheels? I have a tank that is using this for sitting on it's connector, and I do not want the raised (front and back) wheels to be adjusted since they are already up.
Wolf 25 Jul, 2018 @ 2:49pm 
Amazing ! thanks
Isy  [author] 25 Jul, 2018 @ 7:34am 
Update!
Version 1.0.2:

- Fixed: Offsets of large grid wheels can now be set properly.
- Changed: The script can now be executed in programmable blocks on rotors or pistons and will still find all wheels and lights.
- Changed: Wheels and lights are now also detected on rotor or piston connected subgrids.
Isy  [author] 19 Jul, 2018 @ 2:07pm 
Thanks ;-)
Wolf 19 Jul, 2018 @ 12:43pm 
Okay, have a good one then ^^
Isy  [author] 19 Jul, 2018 @ 10:47am 
I will try to publish something next week.. Right now I'm on vacation ;-)
Wolf 19 Jul, 2018 @ 6:02am 
Allright, the edit was just something as easy it was lazy tbh ^^
And yeah, my trailers are connected with rotors, since it's working as intended in my current case, I can now patiently wait for your update to come :)
Isy  [author] 18 Jul, 2018 @ 1:43pm 
I could build in something like that. But by searching for all wheels on all connected grids, this could lead to the problem, that unwanted wheels are changed. For example if you are connected to a station with other connected vehicles, it would change them all which will probably lead to horrible clang explosions.. If your trailers are connected via rotors there is a way to manage that in a more intelligent way, which is already used in other scripts of me..
Wolf 18 Jul, 2018 @ 10:55am 
Well, I added something to support sub-grids that works so far by checking your script myself, even though, I don't know if you'd have done that. Here it is if you want to check, changes are around the "getBlocksOfType" functions.
The modifications : https://pastebin.com/G4a7tYtm
The fully edited script : https://pastebin.com/FZx0c6mh
Wolf 18 Jul, 2018 @ 8:43am 
Hello my good Sir, it is indeed, a really practical mod.
I'd like to know if it would be possible to also affect sub-grid(s) suspensions as well ? I have a certain amount of different trailers to hook on some cars/trucks, and it could be even more practical to be able to toggle at the same script execution.
Isy  [author] 30 May, 2018 @ 5:15am 
Update!
Version 1.0.1:

- Changed: the suspension settings are no longer done by editing the script but by giving the script parameters to execute. How the new system works is documented in the instructions inside the script.
- Changed: with the new system, the script is now able to set one specific height rather than always toggling between two.
- Changed: light colors are setable for one height, both or as a toggle between two heights.
McTec Ind. 20 May, 2018 @ 1:57am 
nice one.very practical...prevents me from having to adjust the entire parking lot rather then just change the height of the vehilce.
Hanadon 18 May, 2018 @ 12:42pm 
*winks* - i just didn't show my appreciation. When I ask a favor, it's also a compliment in disguise with certainty. Ty.