2007.07.14, 01:20 AM
I can't see the error in this code! can anyone else?
Code:
function damage(obj,tick) {
if (obj.hit.projectileName=='Missile') {
die3();
} else {
if(crouched!=true) {
switch (obj.hit.hitBoxName) {
case 'Head':
die2(obj);
break;
default:
obj.model.animation.interrupt('Hit');
break;
} else {
obj.model.animation.interrupt('CrouchedHit');
return;
}
}
}
}