Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mdotstrange on January 28, 2016, 03:38:25 AM

Title: [SOLVED] How to select FSM component w/State machine behavior proxy?
Post by: mdotstrange on January 28, 2016, 03:38:25 AM
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?
(http://i.imgur.com/ggZGxM6.png)

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  :)