# \[BUG 4.7.2\] Timeline play call in function

**URL:** <https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663>\
**Category:** Blueprint\
**Tags:** timeline, bug, unreal-engine, functions, question, Blueprint\
**Created:** [March 6, 2015, 8:04pm UTC](https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663 "2015-03-06T20:04:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![OpticalShadows](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OpticalShadows](https://forums.unrealengine.com/u/OpticalShadows)\
**Post date:** [March 6, 2015, 8:04pm UTC](https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663/1 "2015-03-06T20:04:46Z")

</div>

I have a timeline on event graph that will play just fine if called from event graph. By called I mean getting a reference to timeline then choosing Play(). This only seems to work from event graph. If I call TimeLine-\>Play() from a function it does not play, however TimeLine-\>Reverse() called from a function seems to work just fine.  
Its easy enough to create a workaround with a custom event but I wanted to bring some attention this “bug” if you want to call it that.  
I understand limitation of latent nodes not available to functions but that doesn’t make sense that only Reverse works.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 8, 2015, 6:37pm UTC](https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663/2 "2015-03-08T18:37:49Z")

</div>

Hi OpticalShadows,

Functions can’t support latent nodes, as you stated, but you can call Play on a Timeline that exists in your Event Graph from inside a function and it shouldn’t cause problems so long as you remember that it’s only calling Timeline and won’t wait for Timeline to finish before continuing with rest of function. In this case, using Play with target as your Timeline should work just as well as Reverse. Can you show me an image of situation in which calling Play in a function is not working for you? Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64096e66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64096e66](https://forums.unrealengine.com/u/anonymous_user_64096e66)\
**Post date:** [April 15, 2015, 4:14pm UTC](https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663/3 "2015-04-15T16:14:38Z")

</div>

Hi ,

I’m having problems with this as well. In my Event Graph I have 4 timelines which I’m trying to trigger from within a function in same blueprint. I can call Play on them just fine from another node in Event Graph but not from function. Here’s how it looks:

 ![38879-timelineissue1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/8/a383be64aba6b67e5ed532a648e4feea6e4b0bad.jpeg)

 ![38880-timelineissue2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/c/8fc106dea059ede55a2b62f28bc56839c805c986.jpeg)

EDIT: Reverse seems to work just fine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [April 15, 2015, 6:11pm UTC](https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663/4 "2015-04-15T18:11:59Z")

</div>

Hi mihai.dbpx,

It looks like your Timelines aren’t hooked up to anything. Try creating a custom event for each. You don’t need to call event, but if Timeline isn’t attached to anything it shouldn’t ever run.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64096e66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64096e66](https://forums.unrealengine.com/u/anonymous_user_64096e66)\
**Post date:** [April 15, 2015, 7:29pm UTC](https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663/5 "2015-04-15T19:29:32Z")

</div>

Hi ,

Thanks for your reply.

I thought they didn’t have to be hooked to something to be able to be called from another place, and **Reverse** works with them as above. I think it would be good if they would be callable without having them hooked.  
I added custom events to call them as I needed in end.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [April 15, 2015, 7:35pm UTC](https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663/6 "2015-04-15T19:35:19Z")

</div>

I’m not certain why Reverse would work, and I haven’t been able to reproduce that. I’ll keep looking into it and see if something needs to be fixed. Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_80d7367e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_80d7367e1](https://forums.unrealengine.com/u/anonymous_user_80d7367e1)\
**Post date:** [June 18, 2015, 6:52am UTC](https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663/7 "2015-06-18T06:52:13Z")

</div>

Hi ,

I would be interested for reason, why timeline node has to be connected to a custom event, even if event is never called.

Is it, because blueprint compiler (optimizer) ignores any nodes in event graph not connected to any event nodes?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [June 18, 2015, 3:20pm UTC](https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663/8 "2015-06-18T15:20:02Z")

</div>

That’s correct. A Timeline doesn’t act like a function or event that can be called, as much as it may seem like one. Instead, if you want to actually use it, you need to have it in an event graph somewhere connected to an executable node, like a custom event.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8c65749a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8c65749a](https://forums.unrealengine.com/u/anonymous_user_8c65749a)\
**Post date:** [July 18, 2015, 5:35pm UTC](https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663/9 "2015-07-18T17:35:00Z")

</div>

Just FYI, this behavior is oddly intermittent. In a previous UE4 version I was calling `Play From Start` from a function targeting a `Timeline` in my Event Graph`that was not hooked up to anything, and it was working as expected. After updating to`4.8.2`that legacy wiring was still working but I could not repeat functionality with a new`Timeline`and function call. Triggering`Play From Start` with a custom event works as described in every case.

---

<div class="post-metadata">

**Author:** ![Grogger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Post date:** [July 24, 2015, 9:19pm UTC](https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663/10 "2015-07-24T21:19:43Z")

</div>

Hi , this behavior of timelines was introduced recently enough (4.7 or 4.8), it broke some parts of my project that have been functional for a long while.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [July 26, 2015, 5:22pm UTC](https://forums.unrealengine.com/t/bug-4-7-2-timeline-play-call-in-function/309663/11 "2015-07-26T17:22:39Z")

</div>

I haven’t checked in older versions, but yes, it’s possible this was cleaned up in newer versions. It isn’t supposed to be possible to run or access Timelines that are not connected to an Event in some way.
