# Collision and Spawn C++ Code

**URL:** <https://forums.unrealengine.com/t/collision-and-spawn-c-code/444489>\
**Category:** FX\
**Tags:** unreal-engine, Collision, question, CPP\
**Created:** [March 3, 2019, 8:36am UTC](https://forums.unrealengine.com/t/collision-and-spawn-c-code/444489 "2019-03-03T08:36:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0b465e26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0b465e26](https://forums.unrealengine.com/u/anonymous_user_0b465e26)\
**Post date:** [March 3, 2019, 8:36am UTC](https://forums.unrealengine.com/t/collision-and-spawn-c-code/444489/1 "2019-03-03T08:36:42Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![PasteteDoeniel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PasteteDoeniel](https://forums.unrealengine.com/u/PasteteDoeniel)\
**Post date:** [March 4, 2019, 10:45pm UTC](https://forums.unrealengine.com/t/collision-and-spawn-c-code/444489/2 "2019-03-04T22:45:26Z")

</div>

maybe this will help you.

[Particles and Emiters in C++](https://answers.unrealengine.com/questions/570901/particles-and-emiters-in-c.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0b465e26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0b465e26](https://forums.unrealengine.com/u/anonymous_user_0b465e26)\
**Post date:** [March 5, 2019, 6:10pm UTC](https://forums.unrealengine.com/t/collision-and-spawn-c-code/444489/3 "2019-03-05T18:10:44Z")

</div>

Thank You
