onHit has made these kind of scripts obsolete for the next version, but this is good for the meantime, thanks for sharing. :)
P.S. None of the semicolons in the script are necessary. They're only needed to separate multiple statements on the same line.
P.S. None of the semicolons in the script are necessary. They're only needed to separate multiple statements on the same line.