I am setting up dynamic camera switching (think RE1) and in general the mechanic works as intended. But there is just one more thing I want to change about it:
Whenever the camera switches while the player is moving through the level, it changes the rotation for the player controls. This is as intended. But I would like to change the rotation only and only if the player isn’t moving.
FIRST APPROACH:
Check if navigation buttons (i.e. WASD) are pressed, set a bool to let the camera system know the player is moving and set the controls only if the player isn’t moving anymore.
RESULT:
I couldn’t get this to work without changing the original behaviour of the buttons. For example when I am checking “W” and setting my bool, it only does that and does not provide player movement whatsoever.
SECOND APPROACH:
Get playerVelocity and check if the Vector == NULL.
RESULT:
The playerVelocity yields (0,0,0) at all times. Note: I am using the default third person character provided by Unreal.
In short: I just didn’t get the velocity to change when the player is moving. Am I missing something here? since that would definetely be easy to maintain once it works.
QUESTION: Any way to get this fixed cleanly?
Thanks in advance.
![alt text][1]