Camera with Target lock

Yeah so I’ve been working on this lock on system but i am unable to move camera while I’m locked on. The lock on isn’t fluent either. How can I fix this?

Hi! I’m having a hard time on what you’re trying to say, could you please clarify?

Usually locking on a target means the camera is directed at the targeted object which is not something the user can control, therefore the camera isn’t enabled for any additional adjustments by the player. By this, do you mean that you can’t exit the locked state? Or maybe you mean that the camera doesn’t follow the player anymore once it’s locked. Anyways, whatever the issue is, here’s a tutorial, check it out!

I cant exit the lock state and also this was the first vid I went to. I didn’t work

Well your implementation seems to be quite different than the tutorial. In the video, the input actions only adjust the target while the control rotation is updated on every tick. But from the screenshot you’ve provided, it seems like you’re solely relying on momentary actions for that. And not only that, you’re also not using the object type variable you reset anywhere, it’s useless if you don’t plug it into somewhere. Like I said, that dynamic variable should be plugged into a find look at rotation to compare the angle between the target and the player, and the result should be plugged into the rotation pin of the set control rotation node which should constantly be updated by the event tick node.

Is your camera using control rotation? If so you would may want to un check that box and implement functionality for your cameras behavior or controls. Like Vis said you probably need to use find look at rotation on tick while locked on. And maybe set a rotation variable to return the camera to when no locked on. More screenshots of the entire functionality of this lock on system would help