Hello dear friends, unfortunately I’m not a programmer and I’m very new to unreal.
I made a video for you about my problem.
(thanks in advance for anyone who looks and tries to help me)
I know that the problem is that the character’s capsule shrinks when it slides and since the camera is tied to the capsule it moves with it.
I just have no idea how exactly this should be installed with the “relative location” of the camera or the capsule.
First of all, here are the pictures of my slide system:
The only problem is that when I add “Add Relative Location”, it is added again and again as soon as I press something…
That’s why I’m stuck on this point right now
I don’t think the whole thing should work with “Add Relative Location”, or what do you think?
Do you perhaps know of another function in the blueprint that would not add this every time, but would only be executed once each time?
I will test it maybe with “do once”
but I think then it stays in the added state
(ok do once do not work because i cant slide anymore after it)
Don’t stress yourself, just answer when you have time
I’m glad I got any help at all, so everything’s ezy^^
So this is now the pure montage, not in the game’s play mode, but the camera moves with the game, so as soon as I’m in play mode, I don’t know exactly whether we’re on the same page
Ah, you mean that there is a collision when you slide?
Now it gets “fun”.
You’ll need to move the CHARACTER MESH instead of the CAPSULE. (Actually, you don’t have to move the character’s mesh at all! Just allow the MONTAGE to play.)
So, the character will slide forward but the capsule is going to stay in the same spot, then on the last frame of the slide, you are going to set the capsule’s location to be where the character’s body is.
Does that make sense?
Ha! Had no idea.
EDIT: When the character does ONLY their Animation Montage, does the capsule move or stay in the same place?
The problem with this would be that even if only the character’s mesh slides forward, the character’s Capsule Collsions Box will definitely show over the size of the mesh, do you know what I mean?
It would still get caught on an obstacle…
Sure, if I were to program this with the capsule halfway up, then I wouldn’t change anything about the capsule as soon as I play the montage and press the slide button