Change projectile speed on spawn.
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.
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:
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):
Hope this helps you out!
answered Mar 22 '14 at 12:22 AM
Steve Allison STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here