Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Sam3D on August 30, 2018, 07:54:45 AM

Title: Playmaker & Animator state[SOLVED]
Post by: Sam3D on August 30, 2018, 07:54:45 AM
Is there a way to wait for the animator to finish playing a clip to trigger another action? Until now, i have used wait (number of seconds) till the clip finishes, but this is not ideal. There has to be a playmaker action that checks if the clip is done animating and then trigger the next animation, right?
Title: Re: Playmaker & Animator state
Post by: djaydino on August 30, 2018, 09:31:33 AM
Hi.
In your animation you can set an event in the timeline of your animation.

Then when you select the event, you can set a function.
You can do a SendEvent or a SetState. (see image below)

(https://i.imgur.com/Xpom08C.png)

But you can only do this on an fsm that is on the same object as the animator

or you can use the animator state sync.

You can get the script on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) , search for "animator proxies"
after you got it and you have errors, also search for "Play Maker Utils" and get/update this.

then you can follow the video below :

Title: Re: Playmaker & Animator state
Post by: Sam3D on September 02, 2018, 02:33:25 AM
Thanks a lot man for the solution  :)