Kill/Damage units outside playable are

Im making a map that shrinks over time. I was able to make the playable area shrink as i wanted but I want the units outside the area to be damaged or die. Any ideas? I tried to use the following below but nothing is happening. My units stay alive outside the playable area and i can still select them.

Event
Unit- Any Unit Leaves (Playable map area)
Local Var
UnitOutofBounds = Any Unit
Actions
Kill UnitOutofBounds

UnitOutofBounds = Any Unit should be UnitOutofBounds = Triggering Unit
Or just Kill Triggering Unit