you have to have your
hitted
variable outside of the function. The way it is now, you allways declare new hitted variable. You do not have any reference to past events.
var hitted : boolean;
function .....
↧