Oops, the above piece of code was wrong, here is the corrected:
@mr.ninja
You can use the same function like this:
for b.blue_car=each blue_car damage_car(b,20) next function damage_car(b.blue_car,damage) b\hull=b\hull-damage end function
@mr.ninja
You can use the same function like this:
for b.blue_car=each blue_car damage_car(b,20) next for c.blue_car=each blue_car damage_car(c,20) next