From this, it says to put a reference to a camera in the level in. How do I do this?
That depends if the camera is inside an actor or not.
You could create a new CameraActor with the camera, and a function that does the switch with a specified FirstOrThirdPersonCharacter, when the player enters a trigger volume, call the function on the new CameraActor and pass the reference to the actor who entered the trigger volume.
For some reason, it’s still not working. This is a photo of me trying to add the reference:
I tried this with both a Camera Actor, a regular Actor, and just a camera I placed in the world.
how about this… just put the gameover camera in your character BP
But the blueprint that controls the GameOver boolean can’t control the camera.
It can call a function on your Player. And that function can change cameras.
How do you call a function on your player from a different blueprint? I found that I could do it if I made a cast to player character but it required a target and everything either didn’t connect or gave a warning that the cast would always fail.
The target needs to be a reference to the object you want to call the function on.
Casting makes a reference more precise if it was held in a parent class type variable.
If I answered your question could you upvote / mark as answer?
