Okay so i have a gun model and every thing set up perfect except for the projectile.
For testing purposes i used the default FirstPerson one and stole that blueprint for use on my 3rd person character. The issue is the projectile fires where ever the camera is, not where the gun is pointing. Also it only fires one projectile, i need it to fire as long as left click is held down.
Now how would i make it only fire when the animation does. right now it fires as soon as you click left mouse down but the animation raises the run then shoots with recoil. I need to get those to sync.
If you want Sync a Specific Animation to execute Code at a Specific Time in the Animation, you can use AnimationNotifies which can Trigger CustomEvents.
You can manually delay it, but I think a better a better solution is to use an Event Notify in the animation so you can fire on a specific frame. Reason being is flexibility. If you ever need to change the length of anything you’re going to have to manually adjust the delay. Pretty cool stuff though. It’s just like setting up footstep sounds basically.
AnimNotifies, if you haven’t used them, are very powerful but a little bit confusing at first. If you haven’t watched Epic’s youtube series about animation blueprint, I’d suggest following it all the way through a couple times to reduce the “wth” factor.
And I do almost exactly what D suggested with my firing sounds. I have a gun that has a “charge up” period, so I run a delay that takes in the time of the charge-up sound as the delay period, then spawn the projectile/play the firing sound. A little easier with sounds really I think.