I made some cubes to blow into pieces while shooting with the first-person template character, using the fracture mode on a cube mesh. All is great however I wish to have a scoring system of how many the player shoots. I found no way to register shots on them since they don’t have a box collision. Tried putting them inside an actor BP and adding box collision but wouldn’t work. I would appreciate any tips or feedback.
Why didn’t it work putting them inside a blueprint actor? That would be a great solution to give you the ability to detect using the On Actor Begin Overlap.
If you add a box collision you can use the On Component Begin Overlap (Box) event. It could look something like this:
Yes, it’s a perfect way however, the cubes I shoot at have their own physics, and they float around. The problem is that sadly the trigger box won’t float and move with them. Any idea on how to attach them properly? (making one another’s child didn’t work).
You can attach the collision to it by putting them as children. If you share a screenshot of how they look in the game and how the blueprint looks, I can help you further!