How do I make a door open quickly but close slowly?

Hello! I am very very very new to Unreal Engine. I am working on a simple game in which one of the challenges is a race against time. The player walks through a trigger volume which triggers a set of obstacles (which I’ve already coded in C++) and opens a door which slowly close. I have this blueprint here:

So what this is does is that it opens a door in 10.5 seconds and closes it in 10.5 seconds. What I want it to do is open the door instantly but close it 10.5 seconds. I tried making another timeline and rotator but that didn’t help. The process should be repeatable meaning that if the player fails he can always try another time. I would really appreciate if someone could guide me through step by step on how to do this. Thanks in advance! :slight_smile:

Hmmmm, I would have probably used a lerp (0-1), and done a lerpRot. Then I would have probably had a multiplier in between the timeline and the lerp rotation alpha… the Multiplier would default to something like let’s say 1 (so you can use the 10.5 in timeline), and the alpha would be the same… for the reverse. But for Play… right after the OnOpen event, set the multiplier to something silly like 10 or something, and clamp it to 1 (since it’s a 0-1 lerp). Right after the OnClose, set it back to 1.

I mean, truthfully, you’re using timeline in a “wrong way” so it’s just hacking together some solution that would work for you.

Ok so I use a simple “Multiply” and a “Lerp” right? Set the A value in the lerp to 0 and B value to 1? In multiply I can set the value to 10? But how do I hook this into what I already have? I’m probably doing this completely wrong:

211138-screenshot-5.png

It’s not bad. But you are hard coding it. And you want a variable called “WhateverMultiplier”, and Get that and hook that up where the 10 is, the 1 goes into the lerp/alpha slot in the timeline. You Set “WhateverMultiplier” right after the OnOpen/Close events.

float is fine

??? I think you need to look at a few of these so you can better understand how to work with timelines now and in the future:

(last one actually used a lerp, 0-1 float)

Of what type should WhateverMultiplier be? Float or…?

Ok now I’m in this stage:

211127-screenshot-7.png

You said to hook up the 1 to the alpha in the timeline but how do I exactly do that since the directions are not compatible. Unless I’m hooking something up wrong.