I have made a program you walk through a building I want it so if the person is standing in a certain part of the building I want it to display a picture what is the best way to do that should I do a if statement using the x and z corrdinates? I wonder how a program like jedi academy works?

)
if (dbCameraPositionX()<1803&&dbCameraPositionX()>1700&&dbCameraPositionZ()<1500&&dbCameraPositionZ()>1300)
{
dbPasteImage(20,0,0);
return;
}
The quality of what a man gives without seeking anything in return shows his integrity.