I how can I switch from level Static Camera to Third Person Camera when I'm Aiming
Hi, I'm doing a Game like Fatal Frame, Silent Hill and Resident Evil. I was wondering, how exactly I can switch from level Static Camera to Third Person perspective when I'm aiming and going back to the last Static Camera I was at before aiming.
Ps: my Static Camera are in the Level BluePrint and the Camera I want to switch to is the FollowCamera in my ThirdPersonCharacter.
asked Jul 20 '18 at 02:57 AM in Blueprint Scripting
Just get the PlayerController and use Set View Target With Blend to set your new camera (with the new view target being your character; the function picks up the camera within your character automatically). It may be a good idea to save your static camera value as a variable, so you can switch back to it when going out of third person view.
This setup in the Level blueprint uses an input function called SwitchCam to switch between the current active static camera and the camera within the player character. By changing the "static cam" variable, you can easily change from which and to which static cam the player needs to transition. Blend Time can be anything you want; I used 1 second, but you can make it instant or whatever.
answered Jul 20 '18 at 09:09 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here