Jump to content

Any way to know when PlayIdle() or PlayIdleAction() finishes?


PJMail

Recommended Posts

Is it when the function returns (synchronous)?

Searched and found nothing conclusive, but I would really expect it to be Async so then need something else to wait for.

Any ideas? The idles could be anything so I need a generic solution. I am running a second animation so starting it too early would terminate the first I think.

 

Thanks.

Link to comment
Share on other sites

I'm afraid there's no way to detect when random idles finish.

 

An idle version of the "PlayAndWait()" would be needed but from what I've seen in the vanilla scripts it looks like the developers always used animation events to force the script to "wait" for the animation to end. But animation events are only helpful if you know the actual animations and if the animations generate events at all.. and unfortunately most animations don't generate events..

 

Maybe you can try registering your script for idles like "IdleStop", "SyncIdleStop", "PipBoyIdleStop", etc...

RegisterForAnimationEvent(MyActor, "IdleStop")
Edited by LarannKiar
Link to comment
Share on other sites

Thanks LarannKiar - that was about what I had found too. Unfortunately most of the 'mod community' created idles I want to play have no events.

PlayIdleandWait() would have been nice!

 

I might try and check few animation events and see what i get, but it does not sound 100% reliable anyway with random idles.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...