Access other game object BoxCollider

Hi,

I’m trying to access an other game objects BoxCollider but can’t get it right, can someone please tell me the right way, thank you.

#pragma strict

private var terrorist : GameObject; // Referance to the GameObject with the BoxCollider on it
private var boxCollider : BoxCollider;

function Awake(){

 terrorist = GameObject.Find("Terrorist Body"); // Find the gameObject with the BoxCollider
}

function Start(){

    boxCollider = terrorist.GetComponent(BoxCollider) as BoxCollider;
}

#pragma strict

private var terrorist : GameObject; // Referance to the GameObject with the BoxCollider on it
private var boxCollider : BoxCollider;

function Awake(){

 terrorist = GameObject.Find("Terrorist Body"); // Find the gameObject with the BoxCollider
}

function Start(){

    boxCollider = terrorist.GetComponent(BoxCollider) as BoxCollider;
}