playMaker

Author Topic: Get FSM State doesn't return correct FSM [SOLVED]  (Read 2867 times)

jess84

  • Hero Member
  • *****
  • Posts: 515
Get FSM State doesn't return correct FSM [SOLVED]
« 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").
« Last Edit: October 28, 2014, 06:34:46 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Get FSM State doesn't return correct FSM
« Reply #1 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?

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Get FSM State doesn't return correct FSM
« Reply #2 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.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Get FSM State doesn't return correct FSM [SOLVED]
« Reply #3 on: October 28, 2014, 06:35:38 PM »
Yeah the tooltips could probably be clearer...