How to create an automatic Sliding Door?
Hello. I am attempting to create a test door in UE 4, and I am having an issue with being able to move my door. The mesh is listed as a static mesh in the components list, however under details I have Mobility set to "Movable". When I hover over my door in the graph tab, I get "A StaticMeshComponent is a mesh that does not animate". Likewise I am trying to plug it into a Set Actor Location node, but again it is not compatible with the actor node. Is their anywhere else I can possible switch the mesh to movable?
I tried watching the level creation tutorial that unreal put out on youtube, but it appears to be using level blueprints, and not class. In his tutorial he goes into the details like it is any other object in the world. However I am trying to make it a class blueprint so I can repeat the door in several spots within my level.
Any suggestions would be much appreciated.
I haven't followed along with this tutorial yet, but try using Get Relative Location and Set Relative Location for the door instead as seen below:
The door should slide open/closed with this setup.
If you post an image of your Blueprint, I might be able to help out and see what's going on. Instead of using the Set Actor Location node, have you tried moving your door through timelines? Take a look at the Automated Door Tutorial - Timelines section.
In fact... if you haven't, you might want to take a look at the whole tutorial itself as it will help you with the second part of your question regarding using multiple instances of the door in your level.
What's really good about this tutorial is that it will allow you to not only be able to use the door in multiple instances, but it will also allow you to override how the door works (via trigger or usable) as well as override the door's properties themselves (materials and static mesh components).
Hope this helps!
answered Mar 24 '14 at 01:43 PM
DizzyWes ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here