How to make my badguy freeze when he hit me?

navmeshagent bad guy follows me. i want him to freeze if he touch a cube that hovers by my head. its a long cube and i can aim it where i want. but how to freeze the badguy when he touch my cube thingy? dis my code so far. its on my bad guy.

using UnityEngine;
using System.Collections;

public class FallenAngelAI : MonoBehaviour {

void Update ()
{
	
	
}

// Update is called once per frame
public void OnCollisionEnter (Collision coll) 
{
	//view is the tag on my little cube thing
	if (coll.gameObject.tag == "view")
	{
		Debug.Log ("yay");
		//baddie.gameObject.
	}
}

}

i know…i suk at OnCollisionEnter() but what code do i put instead. the tags are all right and the script is in the right place.

wehlp. my code was right for the whole time but the tags werent right…i was sure they were but they werent somehow.