Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: jess84 on October 18, 2014, 12:40:33 PM

Title: Get FSM State doesn't return correct FSM [SOLVED]
Post by: jess84 on October 18, 2014, 12:40:33 PM
When using 'Get FSM State', if you select another object's FSM to check, the value returned is always the first FSM on the object (alphabetical) rather than the one actually specified.

See the screenshot.

Instead of returning the State name from the 'New Connection Test' FSM, it was returning the value of an empty FSM I had on the specified object. ("FSM", and "State 1").
Title: Re: Get FSM State doesn't return correct FSM
Post by: Alex Chouls on October 28, 2014, 02:41:20 AM
I noticed you have an FSM in the Fsm Component slot. This will override the other target settings. Does it work if you make the Fsm Component "none" or drag the "New Connection Test" into Fsm Component?
Title: Re: Get FSM State doesn't return correct FSM
Post by: jess84 on October 28, 2014, 06:29:08 PM
Ah, yes, it does work correctly if I clear the FSM Component entry.

I didn't realise that was what it was for, I actually dragged the gameobject onto that window, rather than a playmaker FSM from the inspector window.
Title: Re: Get FSM State doesn't return correct FSM [SOLVED]
Post by: Alex Chouls on October 28, 2014, 06:35:38 PM
Yeah the tooltips could probably be clearer...