playMaker

Author Topic: Detect Entering Any State  (Read 1261 times)

hockeygoalie78

  • Playmaker Newbie
  • *
  • Posts: 8
Detect Entering Any State
« on: February 03, 2020, 09:23:24 AM »
I'm looking to implement a script that keeps track of every state that the finite state machine has gone through. Is there any event like that for PlayMaker that I could subscribe to in my script?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Detect Entering Any State
« Reply #1 on: February 12, 2020, 01:54:30 AM »
Hi,

 unfortunatly, there is no api to give you callbacks on that kind of stuff, I wish there was some indeed, same with events, etc etc.

 what you can do is create a script that checks on every update the current state of a given fsm, and you compare to a cached value, and when it changes, then that's when the fsm switched to a new state.

Bye,

 Jean