Hi there, I’m fairly new to UE4 and I’m struggling with an issue I’ve come across with animations. I currently have the player walking around, running, jumping, crawling, punching etc. I also have a baseball bat in the scene that he can pick up, and equip/unequip at the press of a button. What I’d like to know is how to have a different animations depending on whether he’s equipped the weapon or not.
In the level blueprint I have told it that when the actor overlaps a particular trigger box, the bat is picked up (unequipped), and can be equipped with Q. That all works fine. However I can’t reference the level blueprints in the character blueprint when I tell it, “btw when you’re holding the bat you have to play a different animation” so I had to make another blueprint for the triggerbox to say “when the player enters, the bat has been collected” and then in the character blueprint I’ve told it “if the bat has been collected, it will be equipped with this button” and in the animation event graph I’ve said “if it’s equipped and the player punches, you play the bat swing animation”
One particular problem I’ve found is that I don’t know what to drag out of the object part of the Cast Triggerbox Blueprint, is it the player? the triggerbox?
Any help would be appreciated, I’ve been pulling my hair out over this for two days.
Thanks,
Matt