Nope that is a condition if attack=1, you want to set attack to 1 with the action when you click the mouse. Then you can add a timer or wait, or perhaps say 'on attack animation finished' and set it back to attack=0. The idea is to set attack to 1 when you attack so the walk animations will not play.