See the video:
In the code, it just assigns a value to aipath.destination.And only the AIPath is controlling the movement of the AI.