I made a second dog, that way I could see what happened when they ran into each other, but what I got wasn;t what I was looknig for. The first dog ran into the wall, and just shoock the whole time.
here's my code
dog_ai_control:
dx# = object position x(10000)
dz# = object position z(10000)
move object 10000, .5
if rnd(250) = 9
yrotate object 10000, (object angle y(10000) + (rnd(20)-10))
endif
if object collision(10000, 0)>0
position object 10000, dx#, 0, dz#
turn object left 10000, (rnd(180)+90)
endif
dxb# = object position x(10000)
dzb# = object position z(10000)
position object 10000, dxb#, 5, dzb#
`++++++++++++++++++++++++++++++++++
`dog 2
dxc# = object position x(10001)
dzc# = object position z(10001)
move object 10001, .5
if rnd(250) = 9
yrotate object 10001, (object angle y(10001) + (rnd(20)-10))
endif
if object collision(10001, 0)>0
position object 10001, dxc#, 0, dzc#
turn object left 10001, (rnd(180)+180)
endif
dxd# = object position x(10001)
dzd# = object position z(10001)
position object 10001, dxd#, 5, dzd#
return