In this tutorial we will add new Surface Types for when we shoot at something, to be able to spawn different particle effects and impact sounds.
Let’s start with creating a new Physical Material, in this case it’s gonna be wood.
Once it’s created, open it and tell it to be “Wood”.
Now there are 2 ways to assign the material to something. The first one is to open the actual Material of the mesh in question and set the Physics Material there.
The alternative solution is to assign it in the mesh component of a Blueprint Actor, see the enemy example for how it’s set to “Flesh”.
Now open BP_ProjectileBase and add a new particle and sound for the new physics material that we created.
NOTE: you can set it in the projectile child classes too, that way you can have pistols for example spawn smaller particles, but snipers spawn larger ones!
And that’s it, now when we shoot at the tree, this is how it should look like: