Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: solideuk on August 19, 2015, 02:52:44 PM

Title: Playmaker and Mecanim Animator Controller [solved]
Post by: solideuk on August 19, 2015, 02:52:44 PM
Hi All,

I hope I can get some assistance. I am trying to have a custom animation on my character to play.

The character has a bolean transition to activate this clip, this works fine.

However I do not know how to stop this custom animation to play after playing once using the mecanim animator controller. I have tried to set the boolean to 'false' after the play animation event, but in doing so prevents the animation from playing at all.

So to summarise, I would be grateful if someone can guide me on how I can play a custom animation once and then back to idle.

Many thanks
Title: Re: Playmaker and Mecanim Animator Controller
Post by: djaydino on August 20, 2015, 02:11:50 AM
Hi,
what i do sometimes is :
i add an empty state (called "animDone" for example) to the animator and make a transition to that state with the same bool and use exit time in the Settings.

i also use Animator Fsm State Sync and set the bool to false in the "animDone" synced state.

here i a video explaining the Animator State Sync :

Title: Re: Playmaker and Mecanim Animator Controller
Post by: Pandur on August 20, 2015, 04:23:22 PM
Hey solideuk,
i have make a Tutorial serie for mecanim and Playmaker to make a 3rd person controller.in my Tutorial serie are walk,crouch and swim.
it is in german,but it is all step by step to learn it.
look here :
https://www.youtube.com/playlist?list=PLn4sS8aiQ7jm3Zu9ZhDfY_OTZ1Sqldfld
hope it can help you :D
Title: Re: Playmaker and Mecanim Animator Controller
Post by: solideuk on August 20, 2015, 05:25:25 PM
Thanks guys, I appreciate the assistance.

I managed to resolve my issue, I simply changed the 'boolean' parameter to a 'trigger' parameter. In doing so it appears that the trigger will always reset once activated.