get the camera rotation from character in a different blueprint
I want to use the camera rotation for my aiming of a weapon.
But i have weapon fire etc. in the weapon blueprint, and i dont know how i can acces the camera rotation from there. When i turn context sensitive off, i can get the camera, but " target(self) " seems to be not allowed and i dont know where to get it from.
Can Someone just say how i can get the camera rotation in a different Blueprint?
asked Apr 25 '16 at 12:38 AM in Blueprint Scripting
Have you tried Get player pawn, and get forward vector from that? This should give you the forward vector of the player character's camera.
The only difference is that the camera may be less restricted that the controller's rotation. You may have to get the player pawn, cast it to your player character class and then get the camera's forward vector.
Hope this helps :)
answered Apr 25 '16 at 02:03 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here