I’m very new here, and I’m trying to figure out how I can make my player always face the target it’s locked on to. So basically while target-locked, they can only use strafe movements. Similar to the combat of 3D Legend of Zelda games.
Pictured is the code for the target-lock on system.
It looks like this is somewhat finished here in the BP_TPC… Do you have your animations for strafing set up in a blendspace? That’s going to be necessary, as well!
Check out this tutorial, then! They’re not overly complicated, but they are going to be completely necessary for this sort of thing. You’re already using one for your movement! You just need to make your strafing one, then have a bool on the ABP for “IsLockedOn” then switch based on that!
Disclaimer: This link is not affiliated with Unreal Engine, Epic Games, or their partners.