Problems with sliding doors when using KeyEvents

Hello guys!

I’m newbie when the conversation is about UE4 and I’m starting to learn about it

I have a problem with my sliding door BP

I was trying to use a KeyEvent to trigger a Timeline to animate a sliding door over time, but without using FlipFlop or Branch just using a Direction variable who is 1 when the door is closed and -1 when is open; this direction multiplies the vector returned by the Timeline and that is used to translate the door

Also I’m using a cubic curve to smooth the Timeline animation

The problem is: while the door is opening the animation is smooth, but after that the door just pop in the final position…

Here is my BP

Can you help?

Thanks! =)

Hi ShanxTadeu,

The link to the other AnswerHub post is a dead link. Do you have a working link to that page?

There was some extra stuff included in the link

Hi guys

In the end I used a Flip Flop object, but essentially I think it’s like a If-Then-Else, that’s why I tried to use a direction variable who value goes from -1 to 1, and used to multiply the vector to make the sliding door open/close

For some reason that was not working, most because I’m new on UE4 and I’m lackin skills on it, but the logic I did was right

But I didn’t want to spend more time with this, so I used a Flip Flop on my BP

But thanks for you support!!! =)

Tc! :slight_smile:

be cause you put some notes linking the “finish” of the timeline

Open and close door blue print ,you cound use the note “LERP”, it is very easy to use

You can see what i do . The character come in a collision to open the door , come out to close the door

or press “F” key to do that

This is my timeline curve

you could do everything with this timeline and “LERP”

NIce, that works! =)

Thanks for your answer! ^^