Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: Andy22 on January 16, 2014, 09:02:59 AM

Title: AnimationEventToFsmProxy component
Post by: Andy22 on January 16, 2014, 09:02:59 AM
Hi,

not a action, but a proxy component that let Unity Animation events directly communicate/Set FsmVariables, supported are FsmInt, FsmBool, FsmFloat, FsmObject, FsmGameObject.

Just add this component and set a AnimationEvent in the track editor and pick the SetFsmXY() calls.


bye Andy
Title: Re: AnimationEventToFsmProxy component
Post by: jeanfabre on January 24, 2014, 08:02:07 AM
Hi,

 Where did you find documentation on this? I am curious cause I can't find anything on this.

 How can "SetFsmInt" be called and what is calling it?

bye,

 Jean
Title: Re: AnimationEventToFsmProxy component
Post by: Andy22 on February 03, 2014, 04:16:13 AM
Those are just routed animation events nothing special. http://docs.unity3d.com/Documentation/Components/animeditor-AnimationEvents.html (http://docs.unity3d.com/Documentation/Components/animeditor-AnimationEvents.html)

I just found it more usefully to directly modify the fsm variables, in cases where i already have 95% of all logic/code inside playmaker. So creating a proxy component just to hold a single bool/int seemed overkill. This way u can keep all variables inside playmaker and directly modify them.

bye Andy
Title: Re: AnimationEventToFsmProxy component
Post by: jeanfabre on February 03, 2014, 04:50:29 AM
Hi,

 Very good. Thanks for this.

bye,

 Jean