I am trying to create a triggerzone which will destroy any rocks that start overlapping with it, if possible a destructible mesh so that they don’t just disappear but fall into pieces. The rocks in question are part of a blueprint that activates their physics and rigidbody - they will be used in the style of the rolling rock trap from Indy
Here’s a screenshot of the Blueprint:
Now the question is: How do I call a reference to the Rocks (They are a Static Mesh) in the Level Blueprint? I tried referencing the whole blueprint but that did not work. Can someone explain to me what I am doing wrong? Or should I use another method to deal with this?
if you drag out a node from the rocks blueprint you should be able to “get [static mesh variable name]”, then you have reference you need. However in my example the blueprint says “from persistent level” but I don’t see that in your screenshot. How are you referencing the rocks blueprint in the level blueprint? If you have the rock bp selected in the outliner then right click in the level blueprint you can add a reference that way.
I created a variable of the BP FallingRocks, I have no clue as to why yours sports the “from Persisten Level” tag, or actually what it does. I got the reference to the Static Mesh, but I can’t connect it to “destroy this actor”, because apparently it is not compatible, although I set the rocks to Actor.
Hey, thanks for all the help so far I’ve tried destroy component, but somehow the rocks are not destroyed when entering the trigger, they just roll through it…
It doesn’t allow me to do this, it says “Editing this value is not allowed” although I have ticked “Editable” and the tooltip says that it is public and editable.