Hello, 👋 I wanted to know how do you go about replacing the barrels And crates to be able to pick up an item after breaking it? I had an idea in mind about adding a vase or something like that in replacement.
Hello, 👋 I wanted to know how do you go about replacing the barrels And crates to be able to pick up an item after breaking it? I had an idea in mind about adding a vase or something like that in replacement.
By default, barrels and crates already spawn an item after being destroyed... You can create a child from BP_WoodenObject, then assign your new mesh.
Make sure to fill the DestroyedMeshChunks array with the broken pieces of your new mesh... In the components, set a normal mesh in SM_NormalMesh and one of the broken pieces(bottom piece) in SM_BrokenMesh.
Finally, adjust the SpawnPoints based on where you want the items to spawn.
BP_Barrel is also a good reference to see how everything is set up, since it’s a child of BP_WoodenObject.
