To take a step back, AI trains are controlled largely through Driver Commands. For a player train, you need to use Rules. Try editing your session rules and you'll see some there already, including...