what is the most efficient way to keep a rts camera within bounds of a scene

I have a 1000 x 1000 terrain, I want to keep the camera within a certain area (center of the terrain), i don’t want the use to ever see the edges of the terrain, this is an easy task to accomplish; however, I wanted to know the most efficient way to achieve this, any takers?

In the move the camera event, check to see if the new values will push it out of the range. If it does, then don’t move it. You could also do a smoothing event if you wanted to work on it, rather then just stopping it, but that’s a bit more effort.

At least, that’s the quick and dirty route I would do it.

yeah that sounds about right, what about using a one big box and set that as a trigger, anything that goes out of the box, will be stopped, how efficient would that be