How can I make my grapple hook more restrictive on my movement/Limit my movement?

Hello!

I’m currently working on a climbing system, And for this system, it’ll be heavily inspired by White Knuckles climbing.

And if you haven’t played white knuckles, I’ll explain the climbing system:

==How the system should work==

So, You have to point your crosshair on an obstacle and then click and hold your mouse button (Mouse button depends on your hand) to attach yourself to the obstacle. And when you attach yourself you can still swing yourself and move a tiny bit, Kinda like a short tether that attaches you to the point your “Holding“ (That will be important for my problem later)

And to detach yourself you release your mouse button.

==On to what my issues/confusion==

And so since the system is just basically yourself being attached to a wall and being able to swing around. Basically, an invisible short tether system, I decided to look for tutorials on how I could achieve this/Grapple hook tutorials. This one in specific if you’re looking for it: How to Make a Grappling Hook in Unreal Engine 5 - Very Easy - YouTube. (This is the only one I could find that’s basically what I’m looking for)

And I followed this tutorial and I did create the tether and it’s as I expected. But the issue is, that It has no limitations on movements, I can basically move so far that it it’s basically you holding onto an invisible limitless rope, which is an issue when you’re supposed to be climbing not holding an invisible rope on a wall.

I don’t really know how to solve this, I’ve tried doing different methods like “Move Actor To“ (It flickered my player and sometimes glitched it entirely) and ect.

This is the code of grabbing and the force:

In short, I have a climbing system based on a short tether, but that short tether’s length has no limit, and I don’t really know how to set up the tether limit

If anyone has any suggestions or any other ideas for my problem, please don’t be afraid to say!

I understood what you don’t like but you never say how you want it to behave.

If you just want to do “nothing” (not to attach) then just input max tether length in the LineTrace distance in place of the “100”


(yes this is your screen capture and yes it is at that resolution :wink: )

If you still want some animation when you can’t connect just put it on the branch where the “NO” is.

Oh my, no wonder the line was so wrong… You’re right the line trace multiplier was too long.
I didn’t even notice that. My bad lol. Thank you! T-T

That solves one of my issues, but I’m still having another issue of whenever I look at something that isn’t the thing I’m climbing on, While I’m climbing. For example: At the sky, behind me or ground behind me while climbing, Ect. It thrusts me towards wherever I’m looking at, and somehow extends my line, While still being gripped onto the last place I latched to. and I don’t know how to solve that lol.

And Idk if this is a separate issue but I can still use my W,A,S,D’s and that moves me back and extends the tether

Also I didn’t mention how I wanted it to behave. That’s my bad truly.

I want the player to be able to click on any surface and latch onto it with the grip/tether. And be able to pull themselves up or down with W or S (which already works from what I see). And also be able to look behind or anywhere while still being gripped, but also stop gripping when you release your mouse and fall.