Access default camera actor

Hi,

I have a custom pawn. In my world settings, I’ve overridden my gamemode and in the gamemode’ constructor, it sets the default pawn to my custom one. I’ve deleted the player start as I want to spawn the player programmatically at a certain location.

So I have a few issues. Firstly, when you play the game, a player start is created and the player spawns- I want to do that programmatically. Secondly, I need to ray cast which requires getting the camera location. I’ve noticed that a CameraActor is created when you play; how can I access that in code so I can get its location, forward vector etc?