triggers are not working correctly

so im making a room that when you walk into, the doors close behind you and infront of you, trapping you in the room. I made a box collider, and made it a trigger and rigidbody halfway into the room that closes the doors.

my code for the trigger is :

    function OnTriggerEnter (other : Collider) {
if (other.gameObject.tag == "Player"){
BroadcastMessage ("ExecutionRoomLocked");
print ("triggered");
}
}

but the trigger is not detected. Anyone know why? the trigger is not kinematic, however, the player is. and i have tried with the trigger being kinematic on and off.

try to use a single "=" symbol.?