SRL Archive - OSR Help

Can I make FindObjCustom only find within a certain area?


Joseph L

2012-05-12 12:33:46

I am making a Chicken Killer script and I want to know if I can make a FindObj only search for objects in a certain area (within the gate of the chicken coop). Like could I somehow only make it search within an ObjDTM_InArea? Thank you!

Home

2012-05-12 12:35:34

From: Joseph L
I am making a Chicken Killer script and I want to know if I can make a FindObj only search for objects in a certain area (within the gate of the chicken coop). Like could I somehow only make it search within an ObjDTM_InArea? Thank you!


Use

function FindObjEx(var cx, cy: Integer; Text: TStringArray; Color: TIntegerArray;
Tol, Step, xs, ys, xe, ye: Integer): Boolean;


Then use MMToMS on OBJDTM Area :) To get Mainscreen points.

~Home