Merlin of Mines - Space Engineers

A set of useful scripts for aspiring Space Engineers!

View on GitHub

Hydrogen Engine Block Handler

This Block Handler handles Hydrogen Engines. It can be used to turn on/off the Hydrogen Engine and get information about its energy output

Default Primitive Properties:

“Enabled” Property

Enables or Disables the given block

#Enable Block
enable "My Hydrogen Engine"
set "My Hydrogen Engine" to enabled
turn on "My Hydrogen Engine"

#Disable Block
disable "My Hydrogen Engine"
set "My Hydrogen Engine" to disabled
turn off "My Hydrogen Engine"

“Power” Property

Turns on or off power to the block. Effectively the same as the Enabled property.

#Turn on
turn on power to "My Hydrogen Engine"
power on "My Hydrogen Engine"

#Turn off
turn off "My Hydrogen Engine"
power off "My Hydrogen Engine"

“Output” Property

Gets the current energy output, in MW.

Print "Energy Output: " + "My Hydrogen Engine" output

“Limit” Property

Gets the maximum energy output the hydrogen engine is capable of, in MW.

Print "Maximum Output: " + "My Hydrogen Engine" limit

“Ratio” Property

Returns a value between 0 - 1 representing the current output over the maximum output. For Hydrogen Engines, will typically be 0 if off or unfueled and 1 if on and fueled.

Print "Output Ratio: " + "My Hydrogen Engine" ratio