Does someone know how to find all actors in a rectangular region dragged by the mouse, and check an actor variable in each, and find all of them with the variable set to a certain value, and return the first n of them in an array? The application is a rts type game, where you select units. You drag a box, and I can use a canvas to show it, but when you release the mouse button, all units in the region are selected. So if their clonenames are in an array, I can access things from there. But rather than go through each unit and find if it's in the region, it would be simpler (if possible) to find all actors in the region and check if they are a unit.
Any ideas? Well, while youwork on it, I'll start with some animations and think of some other ideas for things to put in it.