I called the RPC function by pressing the button and it works, but when I call it through the 3D area input function, it simply doesn’t work. Does anyone know why? And I don’t get any errors. I’m trying to implement the damage system on the player.
it’s not set to “call_local” so the damage won’t appear on the local client. You could add a print statement before the rpc call to check if your signal is connected.
Use Godot 4.x Callable style rpcs with damage.rpc() instead of string names.