playMaker

Author Topic: [SOLVED] How to select FSM component w/State machine behavior proxy?  (Read 1606 times)

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
I've been using the proxy with Broadcast all and it works perfectly- but now I'd like to send the event to a specific FSM-

How exactly do we select an FSM component?


When you click to select one nothing is available- not even template FSM's- I tried opening a second inspector and dropping an FSM in and that didn't work either-

Any tips on how to select an fsm to send events too? Thanks!

Update: I think I found a clue in the Unity docs
Quote
Remember that since state machine behaviours are Assets, they cannot store references to scene objects. In order to refer to a scene object in a state machine behaviour the reference must be found or passed to the state machine behaviour.

I'll try using set property to set the fsm component

SOLVED:

I created an object variable using PlaymakerFSM as the type- then I used that var with Set Property to set the FSM component on the script- it works  :)
« Last Edit: January 28, 2016, 05:51:58 PM by mdotstrange »
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!