Bravo1853, я бы рекомендовал после ответов на форуме смотреть описание предложенных функций в мануале, это значительно сокращало бы путь к решению. Последний параметр PlayObjectAnimation можно менять на:
IDLE – the animation is played cyclically, until it is replaced by another animation
ONESHOT_STILL – the animation is played once, and after it is finished, the object remains in the posture it took in the last frame of the animation
ONESHOT – the animation is played once, and after it the object’s standard idle animation is started
Если вы задаете цикличность повторений с помощью своего кода, то проигрывать надо одиночную анимацию ONESHOT_STILL / ONESHOT