I can't figure out how to enable / disable a trigger.

Is this the right line of code to use? Everything else is set up correctly, but this line of code will not work. Thanks.

Collider1.GetComponent(BoxCollider).isTrigger = false;

All you need to do is: Collider1.collider.isTrigger = false;

what is Collider1? is that already of type Collider?
if so, you don’t need the GetComponent.

than

Collider1.isTrigger = value;

would be correct