Third Person weapon and Pseudo 3D - Lookat set ahead instead of controlled by mouse.

Tscorpio

New member
I am trying to setup a third person character whose weapon points & fires in whatever direction they are facing.
The Camera is using Third Person Pseudo 3d
The character movement is using Pseudo 3d
The character moves & turns fine, but whenever I aim & fire the weapon was repoints itself in weird directions.
I turned on the Debug Look ray and figured out what it was going on. Basically I'd like the look at to be always going straight out away from the player instead of controlled by the mouse. What's the easiest way to achieve that?

Thanks!
 
You may want to slightly modify the Psuedo3D viewtype (or better yet create a subclass of it so you don't have to modify source in case of future update conflicts). You could just return m_CharacterTransform.forward for LookDirection.
 
Top