Gillbz
06-05-2007, 04:57 PM
In this tutorial we will learn how to open doors.
This tutorial starts assuming you know how to use all the bold and red functions.
There are a couple of ways we can check if a door is open or closed:
MMouse
We can move the mouse to the door and check IsUpText('pen'). This may look very "botty" since you will have to check every time you want to go through the door.
FindColorTolerance
We can tilt the screen down and check if we can find the color of the door with a high tolerance. If it is found then some people still like to use IsUpText(). This is the second best way.
DTM's
There are two ways we can use DTM's to open doors:
FindDTMRotated
We can keep the view from upbove and create a DTM of the door from the top angle. We can then store it in a varibile and check if the found DTM angle is between > 5 or < 1 (6 is approx 360 degrees). If it finds that and the compass is north, and the door east or west then the door is shut. We need to open it so move the mouse to the x and y vars it returned and click. Prehaps use IsUpText('pen') just to check.
Please post comments on how I could improve and if it was useful.
This tutorial starts assuming you know how to use all the bold and red functions.
There are a couple of ways we can check if a door is open or closed:
MMouse
We can move the mouse to the door and check IsUpText('pen'). This may look very "botty" since you will have to check every time you want to go through the door.
FindColorTolerance
We can tilt the screen down and check if we can find the color of the door with a high tolerance. If it is found then some people still like to use IsUpText(). This is the second best way.
DTM's
There are two ways we can use DTM's to open doors:
FindDTMRotated
We can keep the view from upbove and create a DTM of the door from the top angle. We can then store it in a varibile and check if the found DTM angle is between > 5 or < 1 (6 is approx 360 degrees). If it finds that and the compass is north, and the door east or west then the door is shut. We need to open it so move the mouse to the x and y vars it returned and click. Prehaps use IsUpText('pen') just to check.
Please post comments on how I could improve and if it was useful.