I'm working on a (functional) computers mod. When the user enter the command "shutdown," the computer used my swap node functions (see here) to change to the off node. However, even though after the swap I use meta:set_string("formspec", nil) the formspec will still show when off after the player exits. I'd also like a way to hide the formspec automatically rather than the player having to press a button or <esc>.
I could use show_formspec on rightclick instead of the normal formspec meta, but I don't think that would be as efficient. I'm gonna have to do that anyway (I assume?) for other menus/inventories within the computer. However, I still am not sure it is possible to easily hide them.
One other issue that I mentioned in my previous post, is that swap node does not keep the facedir. If you can tell me how to keep the facedir with swap node, please do so on my other post to keep everything together (for other people's possible reference).