Space Engineers

Space Engineers

Not enough ratings
Altitude Alert
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
953.000 B
15 Jan, 2017 @ 5:12pm
15 Jan, 2017 @ 5:13pm
2 Change Notes ( view )

Subscribe to download
Altitude Alert

In 1 collection by p3st|cIdE
Scripts
13 items
Description
Simply triggers a timer block named TimerName
when vehicle altitude goes below MinimumAltitude.

BLOCKS NEEDED:
a programmable block, with this script
at least one remote control or cockpit
a timer block to trigger
Ownership of all the blocks should be the same, to ensure they can intercommunicate.
Now make some other timer block Run the script with blank argument periodically.
17 Comments
Nizzine 4 Jun, 2019 @ 1:58am 
I love it! works perfectly! thanks!
p3st|cIdE  [author] 10 Oct, 2018 @ 5:42am 
So you're a born programmer, then eh? Glad you got something working. Yeah, the altitude the script can obtain for a cockpit is the same as the one displayed while sitting in that cockpit, iirc. This uses the same mechanism I use in Hover Altitude Aligner, though that doesn't work currently, the gauge of altitude is not the problem. Feel free to use my code as a starting bed, example, take whatever you need. I hope they help someone learn something or enjoy the game more.
epflederer 9 Oct, 2018 @ 11:07pm 
Never mind. Turn out my lack of c# knowledge kept me from seeing how to do what I was trying to do, but I managed to finagle my way to what I needed. I specialize in the ancient and powerful arts of copy/paste and trial/error.
epflederer 9 Oct, 2018 @ 10:48pm 
Does this script have the ability to basically read the cockpit's altitude displayed on the horizon indicator? And if so do you mind if I pull some script to help with one I'm working on? I need to be able to read the specific altitude to determine how hard to fire retrograde thrusters on a rover lander I'm building
Kahrstrom 3 Nov, 2017 @ 5:33am 
Thanks mate!
p3st|cIdE  [author] 1 Nov, 2017 @ 5:17pm 
I will link to your version if it seems useful.
p3st|cIdE  [author] 1 Nov, 2017 @ 5:16pm 
I don't mind at all. This is a toy script, I really don't care about credits. :)
Kahrstrom 1 Nov, 2017 @ 1:48pm 
Hey mate, my brother just helped me make it so it doesn't activate until a certain speed (configurable, but I set it to 25m/s). I was wondering if I could post this extended version on the workshop, I will of course take no credit and leave a link to your script in the description and all that.
Kahrstrom 1 Nov, 2017 @ 5:27am 
Great that you liked the idea, I know nothing about programming myself, I could check with my brother dough, anyways, thanks for the great work you´ve done!