



Run – it will run the script that was remembered in editor. The programmable block terminal panel screen currently contains two buttons:Įdit – it will open the editor for editing scripts and the ability to save/load scripts from and to disk.Īlso, you can upload your scripts to workshop and download subscribed scripts. Since Update 01.067 Hotfix 007 each programmable block has a maximum limit of 100,000 characters for any in-game script.Depending on what your script is doing, one approach may be the preferred or even the only way to do it. a sensor block), or modify your script to check for a precondition and set up a timer to run it regularly (a 'polling' approach).

If you want your script to run when something happens, you need to either find a way of getting another block to trigger it at the right time (an 'interrupt-driven' approach via eg. This means it is impossible for a single run of the script to 'wait' on any event. Programmable Block scripts run in a single update (single frame) and any that take too long to complete are aborted. It can also be used by entering the control panel in the Terminal. A Programmable Block can be programmed to do different functions, like switching lights and controlling doors.
