SRL Archive - OSR Help

How to make script chop NEAREST tree?


Green Bay Packers

2012-06-11 09:03:13

Like right now, my script is chopping trees that are really far away when there's one like right next to my player. How do I make it chop the tree nearest to my player/nearest to the center of the screen?

riwu

2012-06-11 09:05:59

Use FindColorSpiralTolerance, it will search from the center of the screen (which is where ur charater is at) and spiral out, so it will detect the nearest tree first.

Green Bay Packers

2012-06-11 09:08:59

From: riwu
Use FindColorSpiralTolerance, it will search from the center of the screen (which is where ur charater is at) and spiral out, so it will detect the nearest tree first.


I really love you, did you know that? You've been really helpful! More rep for you!

EDIT: Darn, can't give anymore :(