This tutorial requires Warcraft III The Frozen Throne.
We are going to make a split shot ability based on barriage. Theres a few things you need to do to 'prep' the ability first.
So the minimum number of targets you can have is 3, and the maximum is somewhere around 9. Here is an image of an archer tower with multiple shot.
Give this ability to your unit and it will use it automatically when acquired.