06-12-2006, 09:44 AM
Would it be posible to enhance the scan functionality to have its work area being a circle instead of a rectangle?
For example as you know by now im coding a complete jobsystem for a game.
The game allows to pickup items in a circle around you.
With the current scan functionality you can only scan in a rectangular area.
The problem becomes obvious when the item that you find, with the rectangular scan, is outside the circlular area that you can draw inside that rectangular box.
Now i hear you thinking then why not check the coordinates of the found position and calculate if it is inside the circle you ment to?
Well the answer to that is:
Because you can not pick it up the next scan keeps finding it, thus disabling finding other items in the area.
And if you keep scanning until not found, your whole macro hangs...
To make sure, im not asking for help to program for a specific game. :lol:
Im just demonstrating the benefit of enhancing the scan functionality with a circular area. :wink:
The usage and circle structure tobe used should ofcourse look like this:
For example as you know by now im coding a complete jobsystem for a game.
The game allows to pickup items in a circle around you.
With the current scan functionality you can only scan in a rectangular area.
The problem becomes obvious when the item that you find, with the rectangular scan, is outside the circlular area that you can draw inside that rectangular box.
Now i hear you thinking then why not check the coordinates of the found position and calculate if it is inside the circle you ment to?
Well the answer to that is:
Because you can not pick it up the next scan keeps finding it, thus disabling finding other items in the area.
And if you keep scanning until not found, your whole macro hangs...
To make sure, im not asking for help to program for a specific game. :lol:
Im just demonstrating the benefit of enhancing the scan functionality with a circular area. :wink:
The usage and circle structure tobe used should ofcourse look like this:
Well thats all for now, 3M