Detonation of an object on collision of character....

Hiya guys!
I pretty much don’t know anything about coding and I want to make a very simple one, I’m pretty sure I know what needs to happen but I’m not sure how to present it. I simply want a code for making a rock explode when the character runs into it. Preferably sound and explosion animations included. PLEASE HELP.

The Explosion Framework provided by Unity is simply amazing. Just instantiate the prefab(s) on collision like so:

function OnCollisionEnter ( )
{
   if ( collision.collider.tag == "player_tag_name" ){
      Instantiate ( Resources.Load("explosion-prefab-name"), transform.position, Quaternion.identity ) ; // Creates / Loads explosion from prefab

      GameObject.Destroy ( gameObject ) ; // Kills object

   }
}

Obviously though, you need to change the position and rotation to the point of impact. Good luck.

Unity Explosions Framework:
http://unity3d.com/support/resources/unity-extensions/explosion-framework