hey guys thanks very much for the fast replys, i tried the code suggested and thats good as the timer function works well,
problem is that after the timer has run out the script is then continueing from where it left off, half way through the script
what i really need is , to run master loop, ie---- (undock, warp to belt, start mining, SCAN FOR HOSTILES, fill cargo, warp to station, unload, start over again)
all working correctly, SCAN FOR HOSTILES is done with If (PixelGetColor(380,741)=0x4a4d4a ) Then warp back to station and dock for timer amount
but then i need to somehow exit master loop and then resart the master loop from the first line
cheers for the help!!