Spawn a DM and destroy the actor
Today I was trying to set up a mechanism in the level blueprint where when a certain actor hits a box collision, the hit will spawn a destructible mesh version of the cube at the location of the hit, and then destroy the cube.
So as you can see, the trigger box casts to the box blueprint to spawn the destructible mesh actor at the location of the hit, and then destroy the original cube. Right now, the box is passing harmlessly through the laser/box collision without any errors reported. I've checked the box's collision and it is set to physics actor, so... What's going on?
asked Feb 09 '17 at 03:41 AM in Blueprint Scripting
OK! I solved my problem, and no I will not be one of "those" threads, I will tell you how I solved it.
Instead of arranging the blueprint as above, I used this:
Now, this will create the destructable mesh at the center of the trigger box, so I will be creating several trigger boxes so it looks as realistic as possible when spawning the dm. But later on in the final stages I will go back and go through the extensive process of doing it the "correct way", however that may be.
I will accept this answer as correct, though if you know a more precise way to do this, please comment/contact me.
answered Feb 09 '17 at 10:13 PM
Best suggestion I have is check the collision settings on both the laser and the cube, make sure they are actually set to block each other (perhaps even try custom). Did you try a PrintString to see if your OnHit event is being called at all? Im going to assume its not if the laser is passing through.
answered Feb 09 '17 at 04:50 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here