Open door animation

Hello. I am trying to set up opening of a door when pulling a lever. I have set up the animation of a lever, however I am struggling to connect it to the opening animation of a door.


I have referenced a door with its animation into BP_FirstPersonCharacter. Print Script at the end of the network works, but the door doesn’t move. The animation of the door is set up inside Door Blueprint via Custom Event. Animation of a pulled lever is set up same way and works. After cancelling the simulation I get the error message:
Blueprint Runtime Error: “Accessed None trying to read property DoorReference”. Node: Open door Graph: EventGraph Function: Execute Ubergraph BP First Person Character Blueprint: BP_FirstPersonCharacter
Would appreciate any help.

You could tie them together by imbedding the two into a parent blueprint (BP Actor exc) and make the variable from the lever or door able to be accessed from the parent bp ^, you then make it so when you activate the lever it triggers the doors event.

Thank you. But why doesn’t it work with my setup?
I have tried it another way:


launching the animation of the opening door in the same network where the lever animation triggers. And it stills doesn’t work, this time without any errors. Although the same setup works when I trigger the visibility of an object instead of the door animation.

you dont cast to the door bp you create a bp and add it inside of the other bp then you can call it

I don’t know what you mean. However I have found the problem.


This setup works. The issue was that the proper object was not selected in the Default section.

where you able to get it to work properly?

Yes

1 Like