Hey nice, didn't expect an awnser that fast! Thank you Miss Sparkle (and WillieSea of course). So, if i understand you right, all i have to do is paste the script you posted in place of the old Automatscript01 and then i'm all done? Easier than i thought.
If i ever release my house mod to the public credits will be given, but thats unlikely because its my personal modding playground and contains quite a few meshes/textures from other modders whom i have to ask for permission.
If you change the name to match the Automat script name, it will effect all of the automats in the game
Just change where I put "scn NameAutomat01Script", the Name part to something for your mod...like scn MudAutomat01Script as an example, and make sure you put it on the automat in your home (new instance of it of course) if you don't want to change all of them.