A soldier will emerge from the left, so you can attack with a ranged weapon, but, there's little point in doing so because as soon as you go to cross the planks, they'll give way and throw you down ...