Notifications
Clear all

[Solved] Barrel and crate replacement

2 Posts
2 Users
1 Reactions
34 Views
087d06654f4dc47aa440159767336493
(@jstudios)
Trusted Member
Joined: 5 months ago
Posts: 43
Topic starter   [#63]

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.



   
Quote
Hosna
(@hosna)
DEVELOPER Admin
Joined: 5 months ago
Posts: 287
 

Posted by: @jstudios

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.

 



   
JStudios reacted
ReplyQuote
Share: