How can I decrease soldier health in boot camp demo . I have been trying to reduce soldier health but its not working and the "fireline" cross the soldier body as if there is no collision (although there is a character controller ,rigid body and a box collider added on solider ) .
Try to use, onCollisionEnter or onTriggerEnter.
mmm.. an example.
function OnCollisionEnter(shoot:Collision){
if((collision.gameObject.tag == "bullet")) {
health = health - 10;
print(health); // you can see if working or not. }
}
sorry about my english.
Only try to help. =)