Hi guys, I’m working on a top down shooter game and I’m trying to make a specific emitter (and then, also a specific sound) spawning when a specific surface is hit by the projectile (for example: if I shoot a rock, spawn Emitter1, if I shoot a tree, spawn Emitter2 and so on).
So, I’ve got my physical materials, and I assigned all the necessary Surface Type to them.
Then, I enabled the physics for the projectile (to be precise, I selected the collision sphere of my projectile in his blueprint, and checked “Simulate Physics”), with Collision Preset: block All.
After that, I added on my map a cube, with physics enabled as well (I’m not sure this is necessary) and a Physical material applied (Phys material override: Stone), with collision preset: block all.
Lastly, I built the following node setup in the Projectile Blueprint:
If I shoot the cube, only the first string is printed out (“HIT”), so the hit event actually happens, but there are two problems: the first one is that there are a lot of hit events (the string is printed out several time… how can I have just one hit?) and the second one is that the switch does not work: the following strings are not printed out.
What am I missing? Is this the right way to achieve what I need?