Core/NPCs: In a formation, properly set walking/running mode

Closes #10539

Signed-off-by: DDuarte <dnpd.dd@gmail.com>