# Change projectile speed on spawn

**URL:** <https://forums.unrealengine.com/t/change-projectile-speed-on-spawn/277795>\
**Category:** World Creation\
**Tags:** spawn, Class, change, unreal-engine, speed, projectile, question\
**Created:** [March 21, 2014, 11:42pm UTC](https://forums.unrealengine.com/t/change-projectile-speed-on-spawn/277795 "2014-03-21T23:42:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_9f49405f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9f49405f](https://forums.unrealengine.com/u/anonymous_user_9f49405f)\
**Post date:** [March 21, 2014, 11:42pm UTC](https://forums.unrealengine.com/t/change-projectile-speed-on-spawn/277795/1 "2014-03-21T23:42:06Z")

</div>

I’m trying to make a ‘bow and arrow’ type projectile. Where you charge the projectile speed before it’s spawned. Having issues trying to set the initial projectile speed after it’s been spawned.

---

<div class="post-metadata">

**Author:** ![Steve\_Allison](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_Allison](https://forums.unrealengine.com/u/Steve_Allison)\
**Post date:** [March 22, 2014, 12:22am UTC](https://forums.unrealengine.com/t/change-projectile-speed-on-spawn/277795/2 "2014-03-22T00:22:43Z")

</div>

Hello,

What you can do for your projectile blueprint is add a float variable and check the box for **Expose on Spawn** (it will also need to be **Editable** ), in this example I’ll call it Projectile Speed. In your projectile blueprint’s construction script, you can use a reference to your Projectile Movement component to call and set your Initial Speed using the Projectile Speed float you just created:

 ![1956-projectileconstscript.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/b/39bf4f919783141d9143c7c0113455b1403c4857.png)

Now, in your Character blueprint (or wherever you are spawning this projectile) when you spawn your projectile, your Projectile Speed float will be available for you to pass in a value, which it will automatically set when created (spawned):

 ![1957-spawnprojectile.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/d/bcdd9769e6e73b072ac194bc779a037960e81ed5.png)

Hope this helps you out!

-Steve

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9f49405f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9f49405f](https://forums.unrealengine.com/u/anonymous_user_9f49405f)\
**Post date:** [March 22, 2014, 12:29am UTC](https://forums.unrealengine.com/t/change-projectile-speed-on-spawn/277795/3 "2014-03-22T00:29:40Z")

</div>

Great, thanks a ton! 🙂

---

<div class="post-metadata">

**Author:** ![avengus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@avengus](https://forums.unrealengine.com/u/avengus)\
**Post date:** [July 20, 2014, 2:45am UTC](https://forums.unrealengine.com/t/change-projectile-speed-on-spawn/277795/4 "2014-07-20T02:45:15Z")

</div>

Trying to do the same thing with the default FPS Blueprint MyProjectile and I don’t see any “Initial Speed” or “Projectile Movement” bits in Blueprints. Where are they? Code completion turns up nada. Version 4.1.0 if it helps.

---

<div class="post-metadata">

**Author:** ![MOTOMIKE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MOTOMIKE](https://forums.unrealengine.com/u/MOTOMIKE)\
**Post date:** [August 9, 2014, 10:44pm UTC](https://forums.unrealengine.com/t/change-projectile-speed-on-spawn/277795/5 "2014-08-09T22:44:46Z")

</div>

You need to drag the projectile component into the blueprint then you can create a node to set the initial speed.

---

<div class="post-metadata">

**Author:** ![JakeD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JakeD](https://forums.unrealengine.com/u/JakeD)\
**Post date:** [January 4, 2016, 11:05pm UTC](https://forums.unrealengine.com/t/change-projectile-speed-on-spawn/277795/6 "2016-01-04T23:05:55Z")

</div>

Hi I’m wondering, for some reason if I plug a variable into the make literal float, it doesn’t work. I have a value that changes to plug into the projectile speed so I need to use a variable, but it seems to stick to some flat value.

---

<div class="post-metadata">

**Author:** ![BadgerBone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BadgerBone](https://forums.unrealengine.com/u/BadgerBone)\
**Post date:** [January 17, 2016, 7:00pm UTC](https://forums.unrealengine.com/t/change-projectile-speed-on-spawn/277795/7 "2016-01-17T19:00:59Z")

</div>

If you mean your variable is in the character class (or wherever the proj is spawning) then I don’t believe you need the Make Literal, but would connect the variable reference directly to the Projectile Speed pin of Spawn Actor.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_22d67592](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_22d67592](https://forums.unrealengine.com/u/anonymous_user_22d67592)\
**Post date:** [August 29, 2016, 4:17am UTC](https://forums.unrealengine.com/t/change-projectile-speed-on-spawn/277795/8 "2016-08-29T04:17:50Z")

</div>

how can I change initial speed every time in press “H” ?
