How to give an ai priority

I am trying to give my ai priority. What I want to do is if the wall has a higher priority then he will destroy the wall. However if the door has higher priority then he will destroy the door. Does anyone know how to do that?