I followed a video series about making the Fortnite Building system in Unreal Engine 4, but now that I finished there are some things that I want to add on to the game.
I am trying to switch the third person character animation when I press the q button so that it switches to the animation that is holding a gun. I have the part for shooting the weapon and all that stuff, I just need to make the original character animation switch to the gun animation. If this seems a little bit confusing, email me at jaredmiller219@gmail.com.
I am not really good at wording things so this might seem not written correctly. I am only in the tenth grade. Here is a pic of what I think it should look like, but I don’t know if it is correct.
Keep in mind that I have other things on here too, so I don’t just have this as the code. If you want to collaborate with me on the project then email me.
Well, you need to work in the animation bp, add a condition in AnimGraph that will change it to holding gun and from the Q press change that condition to true. If I could I would drop few animation tutorials for this but UE deleted them for some reason so just look for some on youtube I am sure you will find how to work with AnimGraph from there.
No can do its a really lengthy process and you can do it on your own, here I found the UE4 official tutorial for this he starts talking about animation in episode 8 and working on them in 10 but I suggest to watch all of it from the beginning, good luck. Tutorial
I did already, I found some things online but don’t understand them. I am trying to (Cast (I think)) the new animation to the third person character and only switch between the no weapon animation and the holding weapon animation when a button is pressed.
Do the cast drag the Boolean that you made for your animation and change it to true on button press, if you did the AnimGraph correctly it will immateriality change the animation to what you want.
You not following the tutorials eh, well never mind if it works… Does your character animation have a build-in weapon(usually never happens)? Because if not you need to add a skeleton mesh of the weapon and attach it to a socket of your character hand.
No, and I did.
also, how do I make the key pressed thing go in reverse, meaning, if I press it again, it will go back to the other animation
here is a pic of the skeleton mesh!
[Image][1]
[1]:
how do I make the key pressed thing go in reverse, meaning, if I press it again, it will go back to the other animation here is a pic of the blueprint script
In the tutorial: Tutorial from 8 to 10 episodes he talks about AnimGraph there you will see run speed in the animation set it to -1 and you get what you want.