Fallout 4 has scripting mods and that capability was explicitly added by the game developers. No explicit modding capability has been added to any version of KSP, ever. They just leave the access to it's members public so mods can access it, something a console will not allow you to do.