Motor.Index() not working C++ V5 Metal Mimic

Hello, I made an autonomous selector program that is able to read the motor ports of each motor using MotorName.Index();. This grabs the port number in respect to zero. I have searched through doxygen and haven’t found anything. This works in Vexcode V5 Pro, but doesn’t in C++ V5 Metal Mimic for Robot Mesh Studio. If anyone could help me it would be greatly appreciated!