Space Engineers

Space Engineers

SWCS | Whip's Subgrid Wheel Control Script
Diesel 3 Aug, 2021 @ 7:09pm
Code Edit Suggestion
I use the new park brake system, with a controller on a rotor, have no direct park brake access, so I use the brake_toggle PB argument.

When I drag it to my hotbar, and set the argument, it says
Whip's Version
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2565462983&fileuploadsuccess=1On the hotbar, it is possible to edit the code to have it show
Park: True or False
Line 106 in the script right above
finalEchoBuilder.Clear();
add:
var referenceController = GetControlledShipController(shipControllers); var wasdInput = referenceController.MoveIndicator; bool brakes = wasdInput.Y > 0 || (canReadHandbrake ? referenceController.HandBrake : handbrakeOverride);
and then right below:
finalEchoBuilder.Clear();
on a new line add:
finalEchoBuilder.AppendLine($"Park:\n{brakes}\n");
This will now show Park: True or False depending on the state on the hotbar
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2565463626&fileuploadsuccess=1
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2565464161&fileuploadsuccess=1 Pastebin Code Link [pastebin.com]
Last edited by Diesel; 3 Aug, 2021 @ 9:14pm