How to spawn decal on collision?

I’m making a paintball based game but i don’t know how to spawn decals where the ball hits. I already have my gun and “paintball.” Thanks for any help with this!

You can create a decal blueprint and spawn it based on information coming from an event hit box.

How do I do this? This is my first time with decals.

Open your paintball blueprint and type “event hit”. This is a node that fires up when your paintball hits/bounces off something. It gives you a wealth of information regarding which actor you hit, what component of that actor you hit, the location of the hit, the normal of the hit etc.You can use this information to create your decal blueprint (and destroy the paintball after).

You can create a decal component to a regular blueprint the same way you would add a static mesh.

Accually I meant that I don’t know how to do the blueprints at all for decals, don’t know which nodes. Could you show me a blueprint for my question?

Would you mind waiting a bit? I’ll prepare one when I get some time on my hands.

Yes, thanks

Actually i think i figured out how to do it using spawn decal node, and it works.

Never mind let’s change the subject: Why does my decal only spawn on skeletal meshes/static characters?

39095-untitled.jpg

walls?

The weird moment when you answer your own question in less than 15 min. :slight_smile:

Hi ,

I’m glad to see that you’ve found the answer for your question. For tracking purposes, I’m going to set this question’s status to resolved. If you still require assistance, please feel free to comment and it’ll revert to an unanswered question so that we may continue.

Have a nice day,