I have this animation setup for a character. He can run, block with a shield, and hit with a sword.
He blocks when RMB is clicked, which activates a bool on the char called “Blocking”
He strikes when LMB is clicked, which activates a bool on the char called “Striking”
The eventgraph on the anim blueprint calls both of these bools, and sets them as their equivialents on the AnimBP.
Both SwordStrike1 and ShieldDefHighKeep, are both unticked in the “loop animation” bool, along with 0.0 in “Start Position”
Now… Whenever i click RMB, he raises/lowers his shield as he should, however when i click LMB he swings the sword on the first click, and further clicks doesn’t do anything. The bools fire and setup like they should, but there is just no animation.
If i instead keep everything the same, but instead set the “looping animation” bool on SwordStrike1 to true, he swings the sword as required with a LMB click.
Any idea as too why this happens?
(I would rather like the sword swing to restart on every click, instead of a looping function, as this causes some offset problems with some delay timers.)
EDIT: When debugging, it seems thay are both left on the last frame, and doesn’t restart uopn clicking, and with the shield, i am lucky catchingit in the good position on the last frame. So it seems like they should be reset somehow. How do i do that?