I am currently creating a combat system with a simple lock on system. How it works is when the player is attacking, the rotation of the character is updated to point towards the target point. Problem is, when the player is done attacking, even though the rotation is no longer set to point towards the target point, the character’s orientation is now wrong, as in when you move forward, the character is rotated sideways.
To counter this, I need to update the rotation of the character once the player is done attacking, but the rotation needs to be ‘forward’, and ‘forward’ is ‘the direction the camera is pointing’
So what I would need to do is get the location value of the player camera, and plug it into the blueprint string as the new target point (and invert it), and everything should be fixed.
But how do I get the location value of the camera, as it is a single asset inside a blueprint?