# Set Velocity Not Working

**URL:** <https://forums.unrealengine.com/t/set-velocity-not-working/302470>\
**Category:** World Creation\
**Tags:** set, unreal-engine, velocity, projectile, Blueprint, question\
**Created:** [December 26, 2014, 4:31am UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470 "2014-12-26T04:31:37Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [December 26, 2014, 4:31am UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/1 "2014-12-26T04:31:37Z")

</div>

Hi All

I have a projectile that has a starting verlocity of 3000, I want make that vary a little to make things a little harder.

I set this up, following a tutorial but seems to not make a difference as the projectile lands in the same spot.

![24974-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/8/05854c7dcefaec01e4c28962eb379f2a804ea98c.jpeg)

Then someone told me to do it this way, I linked it to a print screen and the values are changing but projectile still landing in the same spot.

 ![24973-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/4/e64ac78b333f7c1def06938f1e821e9751ae91a4.jpeg)

Original Post in forum.to show all the other setup variables: [Set Velocity no working. - Blueprint - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?55122-Help-Set-Velocity-no-working).

Am I missing something or should it not be done this way.

Cheers

---

<div class="post-metadata">

**Author:** ![Hitsugen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hitsugen](https://forums.unrealengine.com/u/Hitsugen)\
**Post date:** [December 26, 2014, 8:08pm UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/2 "2014-12-26T20:08:21Z")

</div>

You said that the projectile was still landing in the same spot. Were you thinking of applying spread to the weapon instead of velocity?

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [December 27, 2014, 1:23am UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/3 "2014-12-27T01:23:08Z")

</div>

If I’m understanding correctly you need velocity of your projectile to randomize on spawn?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [December 27, 2014, 11:23am UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/4 "2014-12-27T11:23:41Z")

</div>

Correct, I need it to land in random location.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [December 27, 2014, 11:24am UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/5 "2014-12-27T11:24:56Z")

</div>

I need it to move at random speeds. It is the same as a skeet, so looking for variance.

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [December 27, 2014, 11:55pm UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/6 "2014-12-27T23:55:46Z")

</div>

If you look at the variables in your **Projectile**. In the Details tab, there is more options you can enable. Search for **Expose on Spawn** for the variables you want to see when you **Spawn Actor** for the specified blueprint. Then you can set them On Construction, and the **Projectile Component** will read the updated variables.

Because whats happening is that if you set it the variables after the **Projectile** has been spawned. The velocity from the default variables have already been applied. So it continues to land in the same place.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [December 31, 2014, 4:38am UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/7 "2014-12-31T04:38:03Z")

</div>

I went to my “Sphere” BP" and click on my projectile and search for Expose. Nothing ☹

![25234-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/f/51fe2ed316b4a4021e62a0e48992c747eaf60e34.jpeg)

I then looked in My Character BP where I spawn the projectile by hitting space.

Looked at the Variable and the node “SpawnActor Skeet DM Blueprint”, nothing there either.

I did find it under “My Projectile REF” Variable in the “My Character Blueprint”, ticked it there. No change, still doing the same thing.

Am I just looking in the wrong place?

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [January 1, 2015, 7:01am UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/8 "2015-01-01T07:01:05Z")

</div>

Hi,

Yes you must look in the Variable section. You want to expose your variables, then set them OnConstruction of the Blueprint Projectile. Basically setting the properties before the Projectile Component initializes and shoots your .

As shown below!

 ![25334-spawnactorexposedvariable.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/2/ff2650bc596c28441a054244873613dd68b68237.png)

Hope that helps,

_Peter L. Newton_

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [January 4, 2015, 9:16am UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/9 "2015-01-04T09:16:57Z")

</div>

As soon as Get UE4 working again, I will give that ago.

So I should plug a “float in range” into the Initial Speed plug?

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [January 12, 2015, 7:28am UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/10 "2015-01-12T07:28:11Z")

</div>

Yes, that is exactly what you should do.

Peter

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [January 12, 2015, 8:24am UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/11 "2015-01-12T08:24:50Z")

</div>

Just realised, I was watching your tutorial last night.

Unreal Engine 4 AI Behavior Tree & NavMesh

Thanks for advice

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [January 14, 2015, 9:10am UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/12 "2015-01-14T09:10:45Z")

</div>

Epic 😃 Thanks. No problem!

Peter

---

<div class="post-metadata">

**Author:** ![Homeboy696969](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Homeboy696969](https://forums.unrealengine.com/u/Homeboy696969)\
**Post date:** [June 12, 2024, 8:03pm UTC](https://forums.unrealengine.com/t/set-velocity-not-working/302470/13 "2024-06-12T20:03:17Z")

</div>

You don’t need the ToolTip in 5.4 Thanks a lot!
