I've got no freaking idea what i'm doing when it comes to scripting... and... i think i've just butchered the script trying to get it to work...
Is it possable for someone to post the script that has already had the above function moved... I've tryed a few times already, and i'm still getting errors...
A problem you might find with the lock on code is that if there is more than one lock on object in range, if you press right click you might not lock on to the closest object.