Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scan with a circle as area.
#1
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:
Code:
Copy      Help
type CIRCLE
,POINT'center
,int'radius
scan(file [window] [RECT|CIRCLE] [flags])
Well thats all for now, 3M


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)