Scripting a fighting game

Hi everybody
this is my last topic :

http://forum.unity3d.com/viewtopic.php?t=55582

but i think if i say my problems here they will be solve quickly
my first problem is about lose character health with different moves : How i can script that if character do a special move opponent lose 15% of his health and if character do a normal strike opponent lose for example 5% of his health ?

Depends, the best solutions would have to do with how your chatacters are designed. If you have your chatacter imported into many meshes(ie fist lowerArm upperArm shoulder ect) then you could use a mesh collider and tag each part to a different tag name. So that when you collided with a certain tag it would tahe the correct percent you want.|| Or you could use Box colliders on your model that adjust a static var that comes from your health script. If you have your health adjusted by float int or fraction, it would be real easy to do. :smile:

function OnTriggerEnter(col : Collider) {
if(col.gameObject.tag == "Player2_Fist"){
Player2HealthScriptName.staticHealthVar -10;
  }
}

I think there is some rule about two mesh colliders not colliding. :smile: