The script finds all the trains that exist in the game at a particular moment in time (including trams) and performs actions to move the following components of the car models: Wagon bogies. The carts turn in horizontal and vertical planes, depending on the current track profile. Wheels. The wheels rotate at a speed that depends on the current speed of the train. Sliding doors. The function is only available on special railcar models. In trains controlled by bots, the right doors open every time the train stops. When the train leaves, the doors are closed. In a train controlled by the player, it is possible to open and close both the right and left doors. Doors will only work if they are present on all cars of this train. Pantograph. The function is only available on special railcar models. In a player-controlled train, it is possible to lower or raise the pantograph again. The pantograph will only work on the first car (locomotive) of the train; it is not required to be present on the other cars.