playMaker

Author Topic: Get notified in editor when a state created?  (Read 2136 times)

xiewneqi

  • Playmaker Newbie
  • *
  • Posts: 2
Get notified in editor when a state created?
« on: July 29, 2014, 10:02:54 PM »
Hi, is there anyway to get notified in FSM editor when a new state has been created, so I can add some actions through some scripts automatically?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Get notified in editor when a state created?
« Reply #1 on: July 31, 2014, 06:42:55 AM »
Hi,

 Interesting question.

I don't think there is a notification system in place for this, but if you keep watching the Fsm.States variable and it's current number of states you'll know if a new state is added, and then you could query for the active or current state.

 That would be where I would start experimenting.

Bye,

 jean

xiewneqi

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Get notified in editor when a state created?
« Reply #2 on: July 31, 2014, 11:35:41 PM »

 That would be where I would start experimenting.

Thanks Jean, hope there will be some notification mechanism in  future release.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Get notified in editor when a state created?
« Reply #3 on: August 01, 2014, 05:29:16 AM »
Hi,

 yes I would like that too indeed. being able to be notified of events being sent, variables being modified, etc would make integration with third parties a lot more powerful.

One day!!

 Bye,

 Jean