How to switch between Animation Blueprints ingame

Can i switch between animation blueprints or montages ingame… like i start the game with no weapon and i can pickup a weapon and if the weapon is equiped i have another animation when i click the left mouse button for example?
or lets say i walk and if i equiped a weapon the walking animations are different to the animations when i didnt equiped the weapon?
thanks if u can answer

Here is my take on what you are asking, may not be exactly what you are looking for but you could give it a go. Hope this helps.

2 Likes

ok this is what i expected but how did u setup the variable “has rifle?”

Just add a bool var whenever you pick up a gun and/or equip it. If you have a inventory system then there are a surplus of ways to equip it. here is a video that kinda explains weapon switching/equiping and you can get an idea of how to use the “has rifle ?” varible. UE4 Tutorial: How to setup weapon swapping - YouTube

ok thank you very much :slight_smile: