According to the AI API docs for AIVehicle.GetVehicleType(), it wants a vehicle ID, not the engine ID. If you have an engine ID, you should use AIEngine.GetVehicleType(engineId) instead.Kogut wrote:WET type vehicles are sometimes failing assertion "AIVehicle.GetVehicleType(engineId) == AIVehicle.VT_RAIL" (I think that from game mechanic side it is still normal train).
Does this help, or did you just wrote it wrong in your post?