Reading the documentation usually helps
https://osbot.org/api/org/osbot/rs07/api/Walking.html
By default the threshold is set 2 and 5 ^
You will have create your own WalkingEvent and set setMinDistanceThreshold(0)
WalkingEvent event = new WalkingEvent(position);
event.setMinDistanceThreshold(0);
execute(event);
You should never execute any code thats interacts with the game in any way in the onMessage method in my opinion, should only be done in the onLoop.
Also mirror mode can skip messages very easily, so checking messages should never affect any script logic