Sending message at end of animation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
dbclutis
Posts: 24
Joined: Tue Feb 25, 2020 7:01 pm

Sending message at end of animation

Post 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)
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sending message at end of animation

Post 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.
dbclutis
Posts: 24
Joined: Tue Feb 25, 2020 7:01 pm

Re: Sending message at end of animation

Post by dbclutis »

Beautiful!
Works perfectly, thank you!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sending message at end of animation

Post by Tony Li »

Glad to help!
Post Reply