Hello everyone,
I am having a bit of a problem with Unreal. I went a bit ahead of the lecture and figured out what code I needed to get the DefaultPlayerPawn. I then set this to my ActorThatOpensDoor but instead of setting this in the BeginPlay function like Mike did, I first set it in the header file. When I tried to compile, Unreal crashed with this error.
Then I moved it into the BeginPlay function after watching the rest of the lecture and I tried to open up Unreal again. But it would not open and it came back with the same error as before. My code is the exact same as Mike’s and I cannot figure out what is wrong.
Here is my cpp:
and here is my header file:
Thanks!