The video shows the basic movement and ranged combat.
This first system is as basic as they come. The player selects a target and the unit uses the llSensor function to see if it is within range. If it is then it informs the target that it has taken damage.
Of course usually there would be a random check made based on the distance to target and units skill, and possibly random damage as well.