Triggers in editor

How can i make it so when i kill an enemy unit the buildings around it become mine?

use the condition that is something like unit in area =0, and the effect change ownership buildings in area to you. easy pz