if you just want to avoid something small then make the object "walk" in a half circle and then point it at the destination again, eg
collided:
turn object left 1,90
for i=1 to 180
move object 1,turndiam/180
turn object right 1,i
next i
point object 1,destx,0,destz
return
is a simple subroutine that just makes the object walk around any obstruction at a fixed radius, this example is untried, it ignores collision while it is walking around an obstruction and stops the rest of the program running, but will work ok on a sparsley populated map, if you want a more fanciful avoidance routine then you can re-write the code so that it does the walkaround in stages during the execution of the rest of the code and if it hits something then it can retrace it`s steps and try the other way around, and if that fails then it could try a larger radius, hope thats some help.
Mentor.
PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.