How would I make it so when you are your allies units go by a specific gate, it opens, and when no allies are close to it, it closes. Another question would be, if this door was destroyed, how would I make it so when you click the rebuild icon, it rebuilds the gate?