
I could make both boats stick to one side of the canal or the other, but that would be bad for gameplay and not what I want. Maybe only the small boat should move out of the way because the riverboat has to go under the bridge in the center. Here is my latest try with the script that failed:
//----------------------------------------------------------->
//Anti-collision threads
//----------------------------------------------------------->
anticollision:
while (vector_length ($boat.origin - $riverboat.origin) <= 200)
{
$riverboat moveWest 200
$riverboat move
$boat moveEast 200
$boat move
}
wait 5
goto anticollision
The two boats have their own docks at either end and will be parked next to each other at one end sometimes. The boats turn around when they reach their docks. Although the riverboat goes past it's dock to turn around.



