# I'm trying to fire a projectile from the center of my screen at my mouse position, but it will only fire to the left

**URL:** <https://forums.unrealengine.com/t/im-trying-to-fire-a-projectile-from-the-center-of-my-screen-at-my-mouse-position-but-it-will-only-fire-to-the-left/372272>\
**Category:** Blueprint\
**Tags:** projectile-movement, unreal-engine, Blueprint, question\
**Created:** [October 2, 2016, 11:51pm UTC](https://forums.unrealengine.com/t/im-trying-to-fire-a-projectile-from-the-center-of-my-screen-at-my-mouse-position-but-it-will-only-fire-to-the-left/372272 "2016-10-02T23:51:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_bc05f7b21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bc05f7b21](https://forums.unrealengine.com/u/anonymous_user_bc05f7b21)\
**Post date:** [October 2, 2016, 11:51pm UTC](https://forums.unrealengine.com/t/im-trying-to-fire-a-projectile-from-the-center-of-my-screen-at-my-mouse-position-but-it-will-only-fire-to-the-left/372272/1 "2016-10-02T23:51:59Z")

</div>

![109400-leftfacingprojectiles.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/6/e061df3346e00f63e32c01ab1a0639c8314952c0.jpeg)

Here’s what’s happening, and here’s my blueprint. I’ve been banging my head against the wall for a couple of days and any help would be very, very much appreciated.

 ![109411-fireprojectilebp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/5/f6582b1d653d7679c872eede0f3c66801a749c29.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [October 3, 2016, 3:40pm UTC](https://forums.unrealengine.com/t/im-trying-to-fire-a-projectile-from-the-center-of-my-screen-at-my-mouse-position-but-it-will-only-fire-to-the-left/372272/2 "2016-10-03T15:40:26Z")

</div>

Hey ,

This is how I would do it:

 ![112833-499771_fireprojectile.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/a/9aa3aae1262e33cbe106ccb8696344987d6f8218.png)

“Scene” is a SceneComponent used to fire the projectile from. As in, where the Projectile will start. Here is where the Scene is located on the Character.

 ![109517-499771_fireprojectilecharacter.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/0/e00680e90f49db2642ecc088955b036f7ade2c82.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bc05f7b21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bc05f7b21](https://forums.unrealengine.com/u/anonymous_user_bc05f7b21)\
**Post date:** [October 3, 2016, 4:44pm UTC](https://forums.unrealengine.com/t/im-trying-to-fire-a-projectile-from-the-center-of-my-screen-at-my-mouse-position-but-it-will-only-fire-to-the-left/372272/3 "2016-10-03T16:44:16Z")

</div>

Hey, thanks for getting back to me so quickly! That’s not working for me though. I put that blueprint on an empty pawn actor right in front of my camera since I don’t have a character in my game. Is that my problem? I’m trying to just use an invisible dummy object to fire it from the center of my camera. Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [October 3, 2016, 5:08pm UTC](https://forums.unrealengine.com/t/im-trying-to-fire-a-projectile-from-the-center-of-my-screen-at-my-mouse-position-but-it-will-only-fire-to-the-left/372272/4 "2016-10-03T17:08:17Z")

</div>

I am not sure what to tell you, this is working on my end. Such as:

 ![109526-499771_result.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/0/100955593a616199c11ef8fd28d4a0ff035a97b8.png)

I also do not know what you mean by:

> I put that blueprint on an empty pawn actor right in front of my camera since I don’t have a character in my game.

Your game needs some sort of Pawn, either as a Pawn class or Character class. I don’t understand why you would want to use another “dummy” Pawn to fire from with your own camera.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bc05f7b21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bc05f7b21](https://forums.unrealengine.com/u/anonymous_user_bc05f7b21)\
**Post date:** [October 3, 2016, 6:03pm UTC](https://forums.unrealengine.com/t/im-trying-to-fire-a-projectile-from-the-center-of-my-screen-at-my-mouse-position-but-it-will-only-fire-to-the-left/372272/5 "2016-10-03T18:03:05Z")

</div>

Ahh, gotcha. I’ll just use the character blueprint then. How do I access the get Scene reference from the character blueprint?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [October 3, 2016, 6:04pm UTC](https://forums.unrealengine.com/t/im-trying-to-fire-a-projectile-from-the-center-of-my-screen-at-my-mouse-position-but-it-will-only-fire-to-the-left/372272/6 "2016-10-03T18:04:48Z")

</div>

Add it as a component to the Blueprint with the Add Component button then search, “Scene”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bc05f7b21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bc05f7b21](https://forums.unrealengine.com/u/anonymous_user_bc05f7b21)\
**Post date:** [October 3, 2016, 6:42pm UTC](https://forums.unrealengine.com/t/im-trying-to-fire-a-projectile-from-the-center-of-my-screen-at-my-mouse-position-but-it-will-only-fire-to-the-left/372272/7 "2016-10-03T18:42:21Z")

</div>

Gotcha. Thanks for all of the help. I really appreciate it.

---

<div class="post-metadata">

**Author:** ![mabdog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mabdog](https://forums.unrealengine.com/u/mabdog)\
**Post date:** [August 24, 2017, 1:16am UTC](https://forums.unrealengine.com/t/im-trying-to-fire-a-projectile-from-the-center-of-my-screen-at-my-mouse-position-but-it-will-only-fire-to-the-left/372272/8 "2017-08-24T01:16:09Z")

</div>

so this solution was very helpful, but if I try to shoot say… the sky it just says trace failed and won’t shoot
