Firstly, it’s much easier to do if the trigger is a BP, don’t try and do it from the level BP.
You can make the trigger like this
and it will kill any static mesh you put in there.
But, you probably want to be a bit more specific? A couple of easy ways are:
- Put an actor tag on the mesh when you pick it up
and then the destroy code would be:
- Your code in the trigger BP could check if the player is holding the mesh. It’s up to you how you do that.
Another slightly more advanced method, is to make the thing you’re picking up a BP also. You could call it DestroyableMesh or something. It’s just a BP with a collision volume and a mesh in it.
Then the trigger box code could look like: