# How to shoot Projectile in random direction

**URL:** <https://forums.unrealengine.com/t/how-to-shoot-projectile-in-random-direction/311525>\
**Category:** Community & Industry Discussion\
**Tags:** shooting, rotation, random, unreal-engine, projectile, question\
**Created:** [March 18, 2015, 11:13am UTC](https://forums.unrealengine.com/t/how-to-shoot-projectile-in-random-direction/311525 "2015-03-18T11:13:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blue669](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blue669](https://forums.unrealengine.com/u/Blue669)\
**Post date:** [March 18, 2015, 11:13am UTC](https://forums.unrealengine.com/t/how-to-shoot-projectile-in-random-direction/311525/1 "2015-03-18T11:13:22Z")

</div>

I’m trying to create a projectile that is spawned at a fixed location and as soon as it is spawned, it shoots out in a random direction at random speed. I’m trying to rotate the actor but it seems that it only shoots in one direction every time - also I can’t figure out how to make the speed random as well, it seems to fly at a fixed speed.

---

<div class="post-metadata">

**Author:** ![Blue669](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blue669](https://forums.unrealengine.com/u/Blue669)\
**Post date:** [March 18, 2015, 12:13pm UTC](https://forums.unrealengine.com/t/how-to-shoot-projectile-in-random-direction/311525/2 "2015-03-18T12:13:21Z")

</div>

Okay, right after posting this, I’ve found the answer.  
For everyone who is asking him/herself the same thing put this into the object after “begin play”:

 ![34740-randomdir.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/9/129a09eef08bb64792a46c99a6358f014030a115.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64b8db82](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64b8db82](https://forums.unrealengine.com/u/anonymous_user_64b8db82)\
**Post date:** [February 21, 2018, 1:31pm UTC](https://forums.unrealengine.com/t/how-to-shoot-projectile-in-random-direction/311525/3 "2018-02-21T13:31:05Z")

</div>

Apologies for necroing an old thread, but this solution does not work for me, The projectile still moves the same regardless of the vector I set here. Has something changed in the newer versions?
