how to block a camera pawn so it doesnt go too far away from actor?

i actually find a dumb solution, basically, once the camera touches a box, it inverts the player input and when it’s not it puts it back to normal



works for now but i haven’t tested it with the wall system, might change