# Can set sequence properties but cannot play sequence actor using C++

**URL:** <https://forums.unrealengine.com/t/can-set-sequence-properties-but-cannot-play-sequence-actor-using-c/1328441>\
**Category:** Programming & Scripting\
**Tags:** actor-sequence, unreal-engine, question, CPP\
**Created:** [October 10, 2023, 4:50pm UTC](https://forums.unrealengine.com/t/can-set-sequence-properties-but-cannot-play-sequence-actor-using-c/1328441 "2023-10-10T16:50:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anh\_Nguyen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anh\_Nguyen](https://forums.unrealengine.com/u/Anh_Nguyen)\
**Post date:** [October 10, 2023, 4:50pm UTC](https://forums.unrealengine.com/t/can-set-sequence-properties-but-cannot-play-sequence-actor-using-c/1328441/1 "2023-10-10T16:50:29Z")

</div>

Hi everyone,  
I am just learning Unreal for serveral days! I had a bug and tried to search but I cannot get the answer, maybe i was using wrong keywords… due to lack of experience.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/a/98a70ad8efbef9a620623d98001dce1207350352.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/a/98a70ad8efbef9a620623d98001dce1207350352.mp4)
  
The bug is that I use code to setup successfully the Sequence (Animation ?) properties: AutoPlay, PlayRate and Loop so that animates the BP\_Cook (simply scaling up/down), but it just played once.  
Can anyone help me with the code that correctly play the animation?
