Hello guys,
I have kind of a complex door animation. Not that complex… but enough complex for me not to use the Timeline blueprint action. Like I have to rotate a thing, that move that thing on the X axis, then I have 4 different side doors “opening” at different time. I had to use the sequencer so I can actually see the animation … & to tweak that animation.
So basically I have 2 sequence anim files. For DoorOpen & DoorClose.
On my “Door” Blueprint I have something like this:
I have a raycast that happens when you press a button.
I check if the door can be opened.
I check if the door is already opening (just so if you press the button again, the animation does not start again).
I check if the door is open, if it is I play the Close animation, if it’s not, I play the Open animation.
Then I have the 2 custom events, Open & Close Door. I know that I probably could tweak those a bit… so if you have suggestions I’m open to that. One thing that I would like not to hardcode is to get the “Sequence End” so I don’t have to input the Delay time. Not an issue right now.
Now, the thing is that everything works! I go to my Door, I press a button, the door Opens … or Closes. Great! My main issue is that I will have 2 of those doors. So I added my second door in the scene, and if I go to that second door, and I interact with it, my 1st door opens and not this second door.
And this happens because the Sequencer is “hardcoded” to the 1st Door that I have in the scene:
I think…
Now In theory I could just duplicate those 2 animations, and change the door actor to the 2nd Door … and be done with it. But I want to learn
So how to do this the proper way? How can I use the same Sequence animation, on an BP Actor that can be multiplied many times.
Thank you very much!