`
//weapon–
var Type=“1H”;
var Damage : float=100;
function OnCollisionEnter(other : Collision)
{
other.gameObject.SendMessage(“GetTotalDmg”,Damage);
}
`
For some reason I can’t get the above code to work.
It is attached to a parented sword, that has “is Trigger” set to true.
What could be causing the problem?
I’ve been messing with this for DAYS now and I can’t seem to find anything wrong.