Changing this value alters the Animation in the Montage, resulting in any loops to be innate to the Animation. To have a dynamic looping Animation, you should set any Animation to only perform one loop, and use game logic to decide how many loops should be performed based on context.