Space Engineers

Space Engineers

SHART | Script Handling Activation of Remote Timers
This topic has been locked
Basic SHART Tutorial for Full Idiots
Hello! SHART is an amazing and fairly simple script but if you're like me you had to mess around for an hour trying to figure out the missing details from the mod's instructions.

If you are like me and need every single step clearly explained, this how you can set up a very basic "garage door opener" type system to open a door on your base from the comfort of your vehicle.

-Build a Programmable Block (PB) somewhere in your base where the door you want to remote control is. Load and run the script and you will notice it has generated a Unique ID for the instance of the script running in that PB. You can re-name this to something you'll remember like "basedoor" or "hangarremote" by editing the text in "Custom Data", don't forget to hit RECOMPILE after making any changes to the script or it won't stick.

-Build a timer somewhere in the same base and give it a name like "doortimer" and set up the timer to trigger the door you want to open/close.

-Go back to your main SHART PB and hit "custom data" again like you did to edit the Unique ID. You will see a section "Timer to trigger on receive=". As you can probably guess, set this to the name of your timer! Don't forget to recompile! This means that any time this PB is activated by a signal it will trigger the timer and thus open your door.

-How to SEND a signal? All you need to do is place a PB on your vehicle and load the script into it again. The unique ID doesn't matter here, it only matters for receiving signals. All you need to do is compile and run the script and you're done. But wait?? How do I tell it to trigger the main PB we set up?

-Get into your vehicle and hit G to set up a hotkey and select the PB you added to your vehicle and select "run ". A text box will pop up asking you to put in an "argument". The argument you want to put in is simply "trigger [unique ID of your base-side PB]". So if you named your first PB "basedoor" you'd put "trigger basedoor" in the text box.

Now, if all things went right whenever you are in your vehicle and hit this hotkey the timer you setup will be triggered by the SHART PB in your base.

If something isn't working, check the scripts as they have a little readout that can help diagnose problems.
< >
Showing 1-1 of 1 comments
Whiplash141  [developer] Feb 8, 2022 @ 4:51pm 
1. Not a mod
2. All this is covered in the instructions.

You do also not need to bind arguments to toolbars, though you can if you really want to. You can run them directly in the argument field.
< >
Showing 1-1 of 1 comments
Per page: 1530 50