i want to change the Initial speed for the first person projectile form another blueprint

HI I am new to unreal

so when I pick up a power up I what the Initial speed for the projectile, the ingress

At the moment I cant change value before it spawns, some times when I launch the game it will have some affect but most of the time it doesn’t do anything , I just need to know if there is a way to change it before spawning it in to the world

Hi, you can change the value at the moment where you make it spawn :

  • on your speed variable, enable the ‘Instance editable’ and the ‘Expose on spawn’ option
    image

  • Go back where you have your spawn actor node and refresh it "right click on the node and click on 'refresh nodes, you should now see your variable appears, you can set the value from here.

I hope I have been understandable :v:

thanks that did work to set the variable before spawn

but the Initial Speed value of the speed projectile movement component is not updating to the new value before it spawns. so when I shoot it stays at the default value that is set in the projectile movement component

I can see the variable updating but the movement in game stays the same

The Blue Value is the Custom Variable value on begin play
the red is the value of the projectile movement component value on begin

but the movement never updates in game stays at the same movement speed

Do you update the max speed of the projectile component too ?
image
Otherwise your movement will not be able to get more speed.

yes that worked thanks - all good now :+1:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.