Collision and Spawn C++ Code

Hello my name is Nikki and I’m fairly new to C++. I’m currently working on a game that requires coding for a mallet to be able to collide with a piano key that will spawn a particle effect. I’ve done a simple project making the player collide with an object and pick it up using C++ and Blueprints. I think that I can just make a base collision and spawn code and then go into Blueprints to modify the particle effect but I cant seem to find any sources to help me on the C++ to spawn the particle effect after the collision. Sorry if I’m not wording things correctly. Any help would be greatly appreciated. Thank you very much!

maybe this will help you.

Particles and Emiters in C++

Thank You