I’ve made the following Blueprint which is basicly a door. The door opens both ways simply with physics constraints on the door mesh (the player ‘push’ the door by moving forward). In the Event Graph I’ve just wanted to make a system that close the door when the player pawn is away from the door. And that work well… once. When the player walk through the door for the first time and exit it, the door close correctly. But if you do it a second time the door will directly snap to the default position, mention as Start Rotation in the BP (which the rotation of the door when it’s close).
So my questions are, why is this working only the first time and what should I do to correct it?
Thanks for reading!
And that work well… once.
Timeline is like a VHS tape - it plays till the end and stays at the end. Once the TL has finished and you try to Play it again, it spits out the value found at its very end, making your door snap to that value instantly - the end of the animation.
You need to rewind it. Either PlayFromStart or SetNewTime and then Play
That should be it. Let me know in case I misinterpreted the code.
I’ve just changed from ‘Play’ to ‘Play from Start’ and it’s work perfectly now!
Thank you very much Everynone for your answer (with the explanation, hats off to the artist!!).