Send Message Not sending

I have my 2 scripts. 1 sends a message Apply Damage when it collides with the trigger. but the goblin I’m fighting does not receive any damage.

attack script

 function OnTriggerEnter(other : Collider)
    	{
    		SendMessage("ApplyDamage", Dammage, SendMessageOptions.DontRequireReceiver);
    		Debug.Log("HI");
    	}

Enemy Script

function ApplyDamage()
{
    animation.Play("block_hit");
	animation.Stop("attack1");
	chasing = false;
	Hurt = 2;
	Health -= Wscript.Dammage;
	Debug.Log("Enemey Hit");
	yield WaitForSeconds(DammageDelay);
	Hurt = 1;
	
}

Like sethuraj said, the function template doesn’t match. Either get rid of the Dammage (typo?) in SendMessage, or add a damage float parameter for ApplyDamage().

Also, the attack script is sending the message to itself. You probably meant to call other.SendMessage so that the Enemy script gets the message and not the attack script.

The key here is you are calling the message on the current GameObject, not the enemy. Try the following:

other.gameObject.SendMessage("ApplyDamage", Dammage, SendMessageOptions.DontRequireReceiver);