How to make a ''look behind feature'' FPS/TPS?
Hello, i have attached the follow camera to my mesh's head and checked the ''Use Controller Rotation Yaw'', but now when i try to change the rotation of the camera through a blueprint of the character's bluperint it always remains in the same position, the character moving with it. I would like to know if there are similar options to manually recreate the option ''Use Controller Rotation Yaw'' and deactivate it when the '''look back'' feature is activated. What i mean by look back or look behind is the abilty of the player to rotate his point of view without changing other movement inputs. Like the ability in Outlast or Dying Light, when the player is looking behind while running or being idle. I would appreciate any support for this case!
answered Jun 27 '17 at 08:02 AM
you can add a second camera on another spring arm, and you can parent that camera/SpringArm to the original springArm. or if this is first person, you can just parent the second camera to the original camera, but facing in the opposite direction.
then, when the player presses a button, get your original camera component reference, and use SetActive, with NewActive unchecked. when they release the button, use SetActive with NewActive set to true, to return it to normal.
this works because when an actor is set as the viewtarget for a playercontroller, it finds the first active camera component. disabling a camera makes it use the next active camera component in the component hierarchy.
answered Aug 25 '16 at 05:47 PM
you can try it like this have a follow camera, and have another inactive camera that snaps to camera location, rotates, and rotates back when you release the input key, and deactivates
in my case, timeline is just a float track that goes from 0 to 165.
if you want to be able to look turning from both sides, make track from 0 to -165, and absolute one of the inputs
you might want to snap the camera location to 0,0,z first and lock x and y rotations while timeline is active, if not may not get what you want
answered Aug 28 '16 at 09:45 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here