Well, people usually call it scripting.
Screw that, I'm using in-game events.
No, seriously. Someone make a mine cart player.
Edit: On further in-game inspection, vehicle bots seem to completely ignore movement events when being ridden. Is there a way around this?