Space Engineers

Space Engineers

Not enough ratings
Gravity Thruster Script
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
2.760 KB
30 Sep, 2017 @ 7:24pm
1 Change Note ( view )

Subscribe to download
Gravity Thruster Script

Description
** Version 1.0 **

Uses some canibalized code from johnathan's Thruster Heat Sink Mod: (link below)
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=937478210&searchtext=heat+thrusters

This Script allows for the gravity on a ship to be varied in proportion to the thrust provided by the thrusters on the ship. This allows for vertical ship designs to have realistic gravity proportional to thier acceleration. The code defaults to taking input from all thrusters, although you can set the thrusters to used by adding a prefix as defined in the code and turning off the option to use all thrusters.

This code is also structured to allow for compatibility and debugging in Visual Studio Code Instructions and comments on that in the bottom of the script.

Instructions
1. Load Script into ProgrammableBlock, save & exit
2. Create timer with actions:
-run ProgrammableBlock with default argument
-trigger itself or start itself // The former will run the program faster, but slow down the game
3. Start the timer
4. Name your gravity generators and thrusters with the prefix [GravThrust], e.g. [GravThrust] Gravity Generator 1
3 Comments
[AXIAL] Stirling 11 Feb, 2024 @ 10:57pm 
@shadow425 i used a scraper to find anything like this and found nothing this is his buddy lmfao
BlackRedDead 26 Jan, 2021 @ 10:56pm 
would it be possible to define directional thrust automatically to name-designated gravity generators to create realistic gravity inside a vessel?
Shadow 7 Apr, 2020 @ 9:03pm 
This isn't yours