How to change Max Walk Speed in C++?

This solution does not work. There is no function definition.