Solved
Solved
Last edited by pl0xmypl0x; 08-28-2009 at 08:32 AM.
Just make an autocolor for the road, and use symbols as a backup.
iv only been scripting for a tiny bit so i have no idea how to do that![]()
You can easily use ACA or Scar Assistant. ACA is in your SRL includes under Scripting tools, and SA you can get from Evil Chicken.
or if you want to make your own(recommended) read one of c0hens(or cazax, i forget lol) tuts on auto coloring with XYZ.
or i can teach you if you want![]()
<TViYH> i had a dream about you again awkwardsaw
Malachi 2:3
If you know bitmaps, you could try using the AutoColorThis function? Read a tutorial on bitmaps if you don't know them, create a bitmap of what you want to auto color, and then do like:
SCAR Code:var bmp, color: Integer;
bmp := ;//bitmap here..
color := AutoColorThis(bmp,x,y,MMX1,MMY1,MMX2,MMY2);
I am pretty sure that there is a FindFaladorRoadColor already though? Maybe wrong.
You could also try a simple FindColorTolerance, upping the tolerance and saving the color:
SCAR Code:function AutoColorRoad: Integer;
var i: Integer;
begin
for i := 1 to 20 do
if(FindColorTolerance(x,y,2938652,MMX1,MMY1,MMX2,MMY2,i)then
begin
Result := true;
Exit;
end;
end;
There are many different ways of doing this. You just have to be creativeYou could also count the colors there using simple methods with TPointArrays.
RadialWalking, or a TPA of the symbol color(s) would be suffice.
“Ignorance, the root and the stem of every evil.”
Turns out it was fally auto color![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)