A little confused with Collision

If I have a character with a sword connected to his hand how would I go about making it so that on collision the sword damages anything else it may hit?
I’m a little confused with that despite having looked at some of the documentation and a few videos. I also found tons of FPS tutorials but not too many 3rd person/action adv types so that could also be it.

You will have to add a collider to the sword and a script for it.

script on the sword:

function OnCollisionEnter(other : Collision){
 Other.BroadcastMessage("TakeDamage",10);

}

Something like that, check syntax in the documentation. Then on the object that gets hit you have to have a collider that has a script on it like

private var life : int = 100;
function TakeDamage(incDamage : int){
life-=incDamage;
if (life<=0)
{
Destroy(gameObject);
}
}

Something like this, again check sytax int he documentation. Remember, you must have a rigid body on one of the objects in order for the collisions to register.