# How can i emit particles/material for mouse cursor?

**URL:** <https://forums.unrealengine.com/t/how-can-i-emit-particles-material-for-mouse-cursor/310208>\
**Category:** Rendering\
**Tags:** how-can-i-fix-this, mouse-cursor, unreal-engine, UE4, question\
**Created:** [March 9, 2015, 10:17pm UTC](https://forums.unrealengine.com/t/how-can-i-emit-particles-material-for-mouse-cursor/310208 "2015-03-09T22:17:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_aa51b2a2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aa51b2a2](https://forums.unrealengine.com/u/anonymous_user_aa51b2a2)\
**Post date:** [March 9, 2015, 10:17pm UTC](https://forums.unrealengine.com/t/how-can-i-emit-particles-material-for-mouse-cursor/310208/1 "2015-03-09T22:17:56Z")

</div>

## SORRY FOR MY BAD ENGLISH

I’m a beginner here and i trying to emit fire from my mouse cursor like in little inferno game

when i emit fire it emits absolutely in different place and doesn’t follow the mouse cursor like i want to.

i think the problem is the mouse cursor location but i’m not sure and i don’t know how to fix it

i made this: **BUT IT DOESN’T WORK**

 ![33347-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/0/f206092385db41415eabce113069c337c758bca4.png)

---

<div class="post-metadata">

**Author:** ![ZombieKemist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZombieKemist](https://forums.unrealengine.com/u/ZombieKemist)\
**Post date:** [March 9, 2015, 10:55pm UTC](https://forums.unrealengine.com/t/how-can-i-emit-particles-material-for-mouse-cursor/310208/2 "2015-03-09T22:55:27Z")

</div>

Instead of using Get Mouse Position, try using the Get Hit Result Under Cursor node. That will give you a hit result if there is something valid underneath the cursor. If you break the hit result (choose Break Hit Result, you may have to turn off context sensitive when you right click) you can get the location and spawn the particle effect there. I also checked for a valid hit before spawning the particle effect.

 ![33366-spawnundercursor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/3/6534081e6302bf1df0e60c4217721500ce31b1ae.png)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_aa51b2a2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aa51b2a2](https://forums.unrealengine.com/u/anonymous_user_aa51b2a2)\
**Post date:** [March 10, 2015, 1:16pm UTC](https://forums.unrealengine.com/t/how-can-i-emit-particles-material-for-mouse-cursor/310208/3 "2015-03-10T13:16:04Z")

</div>

MY HERO!!! IT WORKS!!! :)) THANKS!!! THANKS!!! THANKS!!!
