# Change animation after a few seconds and then not go back

**URL:** <https://forums.unrealengine.com/t/change-animation-after-a-few-seconds-and-then-not-go-back/464257>\
**Category:** Character & Animation\
**Tags:** random, unreal-engine, flashlight, question\
**Created:** [April 25, 2020, 9:15pm UTC](https://forums.unrealengine.com/t/change-animation-after-a-few-seconds-and-then-not-go-back/464257 "2020-04-25T21:15:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_86f4b4551](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86f4b4551](https://forums.unrealengine.com/u/anonymous_user_86f4b4551)\
**Post date:** [April 25, 2020, 9:15pm UTC](https://forums.unrealengine.com/t/change-animation-after-a-few-seconds-and-then-not-go-back/464257/1 "2020-04-25T21:15:52Z")

</div>

So basically i have a model with 2 animations and i have a sit anim and stand anim and i want sit to be his idle anim and then after a random amount of seconds my model switches to stand anim and i dont want him to go back to the sit animation but i have a flashlight item which i want to be used so when my flashlight is pointed at him i want him to sit again but only when he is standing and then loop. Please make this possible for me please i beg for help.

---

<div class="post-metadata">

**Author:** ![Max\_Payne](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/max_payne/32/1088663_2.png) [@Max\_Payne](https://forums.unrealengine.com/u/Max_Payne)\
**Post date:** [April 26, 2020, 12:18am UTC](https://forums.unrealengine.com/t/change-animation-after-a-few-seconds-and-then-not-go-back/464257/2 "2020-04-26T00:18:33Z")

</div>

I think you are looking for [State Machines](https://docs.unrealengine.com/en-US/Engine/Animation/StateMachines/index.html). [You can check this tutorial for start](https://www.youtube.com/watch?v=15ukYQcKUZk).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_86f4b4551](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86f4b4551](https://forums.unrealengine.com/u/anonymous_user_86f4b4551)\
**Post date:** [April 26, 2020, 12:57am UTC](https://forums.unrealengine.com/t/change-animation-after-a-few-seconds-and-then-not-go-back/464257/3 "2020-04-26T00:57:48Z")

</div>

I have watched the video now what should I do? btw the flashlight uses a spotlight.

---

<div class="post-metadata">

**Author:** ![Max\_Payne](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/max_payne/32/1088663_2.png) [@Max\_Payne](https://forums.unrealengine.com/u/Max_Payne)\
**Post date:** [April 26, 2020, 3:41pm UTC](https://forums.unrealengine.com/t/change-animation-after-a-few-seconds-and-then-not-go-back/464257/4 "2020-04-26T15:41:09Z")

</div>

Video is only an example of how to use state machines. You need to create your own states of standing and sitting, put logic between them. When you point your flashlight on actor call function on his animblueprint to switch between states.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_86f4b4551](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86f4b4551](https://forums.unrealengine.com/u/anonymous_user_86f4b4551)\
**Post date:** [April 27, 2020, 11:01am UTC](https://forums.unrealengine.com/t/change-animation-after-a-few-seconds-and-then-not-go-back/464257/5 "2020-04-27T11:01:04Z")

</div>

Could you please send me a snip? i really need this help i beg.
