Lock on system interfering with character alignment

I am using a lock on system to have my camera follow a certain target. I also have it setup to align my character to the floor so it stays parallel to the floor even on slopes. The issue is that when locked on, the character floor alignment is offset by the lock on and no longer aligns to the floor. Curious if anyone knows how I can make both systems work together.

Align To Floor
Lock On Targeting

Can you post screenshots of code/BP? My guess is your lock on is affecting XY rotation of you actor where you’d probably only want to affect Z

You need to split the XYZ values for your align to floor code. Negate the XY and don’t plug in the z.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.