Book a Demo

Author Topic: How to reference substate multiple times?  (Read 11543 times)

Paul Neyman

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
How to reference substate multiple times?
« on: May 04, 2010, 10:12:43 am »
Hi!

I have a state machine where several superstates have the same substate machine inside. Is it possible in EA to reference this single state machine from multiple states without having to replicate it n times?

Thank you.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: How to reference substate multiple times?
« Reply #1 on: May 04, 2010, 05:24:51 pm »
You can equip your substate machine with entry and exit points for use as targets and sources for in- and outgoing transitions. Then put several instances of the substate machine into your main state machine, naming each like the states you now have, and displaying the entry and exit points you need in the context.