Originally Posted by
Trollcrank
I am unaware of any in built SRL function.
Anyone wanna help me make a custom object finder? I was thinking of locating two different colors and then using the x's and y's to make a box around the object. The more I think about it, would that actually work with multiple objects though? Is the idea actually sound or should I just make a basic generic one that I've seen in a few scripts.
You can do that easily using TPAs. You just combine the two TPAs and then use the standard functions.
Code:
SetColorSpeed2Modifiers(0.05, 0.06);
FindColorsSpiralTolerance(mscx, mscy, TPA, 6255480, msx1, msy1, msx2, msy2, 9);
SetColorSpeed2Modifiers(0.06, 0.64);
FindColorsSpiralTolerance(mscx, mscy, TPA2, 4152166, msx1, msy1, msx2, msy2, 19);
TPA := CombineTPA(TPA,TPA2);
ATPA := ClusterTPA(TPA, 25);