i'm looking for a way to disable inputs such as wasd when a dialog box is visible in the game without messing with the player's physics process code.
I don't know if you can disable inputs, but you can erase input actions and restore them with the InputMap class. https://docs.godotengine.org/en/stable/classes/class_inputmap.html