Couple of errors during PlayerControl Coding (Lecture 70)

Hello,

I get a couple of errors during coding of PlayerControl. I don’t understand why it’s not in the library when I already declared it earlier in Opendoor.h. Please see attached images:

It’s not registering GetWorld:

Any suggestions? Thank you.

Also, when I hit the play, it’s not removing nor saving the state in which I set Default Pawn in the ActorThatOpens:

  • GetPlayerController() should be GetFirstPlayerController()

Also, to get rid of the squiggles under GetWorld() and enable autocomplete for it, add this to the top of the file:

#include "Engine/World.h"

Privacy & Terms