I changed a few things and it worked:
Inherited from APawn instead
Recompiled in visual studio while the editor was closed
I’m guessing it has to do with the last one. I had to build manually in VS before this worked. Note that restarting the editor alone did not help.