Hello. I’m currently making a game where the player plays (duh) in a first person camera, but the initial level I want to make a car moving with the camera inside it (car moving itself, but the player is able to look around).
How can I start the initial level with the first person camera attached to the moving car (blueprint) only being able to look around and in the next level, the FPcamera is the “playable” camera with all the inputs I made?
P.s: I’m using the default First Person Blueprint
The easiest way would be making this car a pawn, so you could posses it. Then create camera component inside blueprint and write code for camera rotation according to axis rotation.
The rest is up to you, if you want to start level as a car and the car is in level already then use level blueprint to possess it via Player Controller. If it is not in level and you would like to spawn it change default pawn class.
If you want to go back to your original character just possess it again.
Thanks for the fast reply, JaroMast. The camera movement is working like a charm. =) But I got another problem, if that’s ok with you.
In my FPCamera I have a line trace on click to interact with actors, and I tried to copy/paste it to the new camera inside the car. But the pawn camera’s line trace isn’t hitting anything while my FPCamera is. What am I doing wrong here?
You are trying to linetrace to the window right? I suppose that this window is a part of car. So uncheck Ignore self while possesing a car
Hope it will work.
It worked indeed. =) Can’t thank you enough for the awesome help. =)