aHoodMan
2015-06-07 23:22:26
I'm new to scripting and I have a basic question. In my script I have a procedure which searches for an object which is the following:
procedure findObject
var
x, y, i: integer;
begin
mainscreen.findObject(x, y, 5000798, 3, colorSetting(2, 6.02, 6.19), mainscreen.playerPoint, 15, 6, 3, ['ntrance'], MOUSE_LEFT);
wait(7000);
end;
My question is how can I make it so if it doesn't find that object say in 5 seconds, it just stops looking for that object and continues on with the script?
procedure findObject
var
x, y, i: integer;
begin
mainscreen.findObject(x, y, 5000798, 3, colorSetting(2, 6.02, 6.19), mainscreen.playerPoint, 15, 6, 3, ['ntrance'], MOUSE_LEFT);
wait(7000);
end;
My question is how can I make it so if it doesn't find that object say in 5 seconds, it just stops looking for that object and continues on with the script?