Well, this is what I could throw together in 2 minutes

I'm not particularly skilled in triggering yet, and I don't know what's causing, or how to prevent, memory leaks, so Arabidnun, could you check for me, cause I don't know anything 'bout it
Anyway, this should work, even though I changed the range from 100 to 150, due to the default melee range being 128, so 100 seemed a bit to close, feel free to change it back, though
EDIT: whoops, I forgot to exclude structures >.< I take it you didn't want it to affect structures as well? Well, anyway, I've fixed it now ^^
You do not have the required permissions to view the files attached to this post.