Newbie needs help. Making Pawn that doent have a camera child? Eg. For Space Invaders games etc

Hello!

I’m not entirely sure if this is what you’re looking for, but some time ago I made a little torch that could be reignited or doused with a key input while being independent from the camera.

So I declared APlayerController* Controller in the header and then did this in BeginPlay:

1.png

You can setup independent cameras or roam around the level freely with the default camera and the actor will always receive your inputs.

Also note that GetFirstPlayerController will most likely only work in a single player game, I haven’t studied how to make a multiplayer game yet, so I don’t know any other way.