Page 1 of 1

Sending message at end of animation

Posted: Wed Jun 03, 2020 3:54 pm
by dbclutis
Hello!
I feel like this is a simple problem, but I seem to be missing something...

I'm trying to send a message at the end of my animation, but it seems to be sending as soon as the animation starts...

My sequence command looks like this:

AnimatorPlay(Show)->Message(EndMessage);
required Fade(2)@Message(EndMessage)

Re: Sending message at end of animation

Posted: Wed Jun 03, 2020 4:42 pm
by Tony Li
Hi,

Use AnimatorPlayWait():

Code: Select all

AnimatorPlayWait(Show)->Message(EndMessage);
required Fade(2)@Message(EndMessage)
This command waits for the animation to finish before sending the message.

Re: Sending message at end of animation

Posted: Wed Jun 03, 2020 5:35 pm
by dbclutis
Beautiful!
Works perfectly, thank you!

Re: Sending message at end of animation

Posted: Wed Jun 03, 2020 8:59 pm
by Tony Li
Glad to help!