Space Engineers

Space Engineers

Configurable Pistons
2 Comments
Gate  [author] 30 Dec, 2021 @ 9:09pm 
@Zia Asuna

Yea, that's a typo in the instructions, it should be " AutoRetract " and not AutoRectract

If you alter the following line
[code]data.Piston.Velocity = data.AutoRetract ? -data.RetractSpeed : -data.RetractSpeed;[/code]
to
[code]data.Piston.Velocity = data.AutoRetract ? -data.RetractSpeed : data.RetractSpeed;[/code]

it should no longer autoretract on full extension, yet still prepare the piston for the alternate speed. my build environment is currently broken, so an mdk-deploy stopped working (nggggh). This will have to suffice for the moment.
Zia Asuna 30 Dec, 2021 @ 4:31pm 
Script not working right " Pistons will always AutoRectract "

if set to " AutoRectract=True " tjek that will work :selike:
but if set to " AutoRectract=False " the piston´s will still Rectract