I think the only way to do this is to make an array containing which units are in the region at a specific time by adding/removing units and then checking each unit to see if its what you want.
If you need more description, just ask. There's probably an easier way, though... |