Blueprint Interfaces How To not working
EDIT: answer is in the last few comments of the accepted answer Hi, Ive been going through Blueprint interfaces figuring out how to use them. I can use them ater following this how to. The problem is its not working. As in the example they used which is destroying glass and changing the colour of a light is not working. I've looked through some other stuff about destructibles but I think that the how to doc would be enough to get the example working. The blueprints are the same. Thanks for your help
Can you describe exactly what isn't working or what step is failing? I followed those steps in 4.12 and it worked perfectly.
Some things that might be going wrong:
If you select the actor but don't see the physics or collision tab, go to the component list on the details pane and select the mesh component of that actor (you will identify it by a small house icon). There you will see the physics and collision tab.
Now, if you are only interested in making a destructible object work, none of this is necessary. That tutorial is designed as an example of interface messaging, which is a form of blueprint communications. That is just an example of an interface working, but destructible meshes work "out of the box".
Just put the destructible asset directly in the level, no need to turn it into a blueprint (in the tutorial, that would be "SM_GlassWindow_DM"). Now, double click on your destructible asset to open the destructibles editor again, and then tick "enable impact damage" and set the impact damage to 100. Save.
Now, when any phisics object collides whit your glass window, it will add some damage to it; when the damage reaches 100, it will break. In this case, any collision will generate the 100 damage.
Note that the destructible does not need to have physics enabled, nor does the projectile need to have "generates hit events" enabled, because now you are not talking about a hit event, but about a damage generated by a collision event (all that is handled by the damage system built into unreal). If you do enable physics on the window, it will fall into the ground at which point it will break.
On the other hand, if you are interested in the actual interface functionality and in blueprints communications in general, this is the most in-depth information you will find:
Here is another video doing a step by step tutorial on destructibles (no blueprint interface involved):
All the best.
Follow this question
Once you sign in you will be able to subscribe for any updates here