hello all. since I fire again before the animation finishes and the bullets spawn from the muzzle socket, they go in the wrong direction. i use anim montage. can u help me
Cache the original socket location, use the current one for muzzle flashes etc but the cached one for bullets, they travel so fast no one will notice exactly where it spawned
i dont want do it like this sir. I believe shortening the animation and ensuring it plays out fully before the next shot would solve the issue.
Normally in this situation I would block the input to fire again until the montage is finished playing / is almost finished before allowing the fire sequence to be triggered again.
You can check if the montage is still playing when trying to shoot and if it is ignore it or you can add a notify to the montage itself that will trigger near the end when shooting makes sense again.
If you need to be able to fire as quickly as you are in the video you might need to alter the animation for it to look right. How are you calling the play montage currently?
It is possible to only play a specific time range of the montage for those quick repeated shots where your gun is held to high and then only play the ending part when the shooting ends. Could also break up the montage into separate parts that handle each stage.
